Commit Graph

61 Commits

Author SHA1 Message Date
xdrm-brackets 61f99cf940 [server] added 'synchronisationKey([]byte)' to apply a new synchronisation key with length check 2018-04-24 23:10:26 +02:00
xdrm-brackets 7d38485edb CODE REORGANIZATION + client command-line usage in [cmd.client] 2018-04-24 23:01:51 +02:00
xdrm-brackets 89bb2099e9 [client] removed debug 2018-04-24 21:29:41 +02:00
xdrm-brackets fb033048f2 [main] added test cli script 2018-04-24 21:28:15 +02:00
xdrm-brackets 99f7df9ad5 [client] improved 'SynchronisationKey' security 2018-04-24 18:48:05 +02:00
xdrm-brackets e178642fea [client] Proper TMP renamed and commented 'SynchronisationKey()' 2018-04-24 18:43:20 +02:00
xdrm-brackets e822440581 [client:client][client:internal] respect go format 2018-04-24 18:32:00 +02:00
xdrm-brackets ea7d7bb89e [server:internal] respect go format 2018-04-24 18:26:54 +02:00
xdrm-brackets 88055b944e [server:internal] remove debug 2018-04-23 18:56:37 +02:00
xdrm-brackets 0b24036360 [client:client] fixed migration validation 2018-04-23 18:09:31 +02:00
xdrm-brackets 50d17723f8 [client.keyset] minmod comment 2018-04-23 18:07:54 +02:00
xdrm-brackets a66cad0eeb [client.keyset] MigrationCode(uint) fixed reference (was by value) 2018-04-23 18:07:32 +02:00
xdrm-brackets 5a5fd89b52 [client.keyset] Decrement() fixed remaining count 2018-04-23 18:06:55 +02:00
xdrm-brackets dc566d0942 [client.keyset] included maxDepth() in random depth generation 2018-04-23 18:02:19 +02:00
xdrm-brackets 499e24fbba [server] [client] seems to work except normal timeline (with renewal and desync) 2018-04-23 01:08:18 +02:00
xdrm-brackets 08581354a4 [server] [client] [lib.scha] big update to review 2018-04-23 00:02:55 +02:00
xdrm-brackets 3c9964b0cb [server:server] created struct 'T' + constructor 'New' + signature for 'HandleRequest(req, res)' [server:server.internal] created 'fetch()' and 'store()' 2018-04-22 21:46:31 +02:00
xdrm-brackets 3d7a8ae034 [client:client] constructor: avoid nil *context.T 2018-04-22 21:16:21 +02:00
xdrm-brackets 996955b820 [client:client] removed unused part in struct T 2018-04-22 21:11:58 +02:00
xdrm-brackets 18c9a9951a [client:client] cleanup 2018-04-22 21:10:00 +02:00
xdrm-brackets 96a9dbe785 [lib.scha] made 'Hash()' salt and pepper arguments optional 2018-04-22 20:58:37 +02:00
xdrm-brackets 18dc9c786a [client.keyset] rename 'Hash()' into 'CurrentHash()' [client:client.internal] rename 'update()' into 'updateConfig()' 2018-04-22 20:54:16 +02:00
xdrm-brackets 87a884abdc [client:client] implemented 'Receive(io.Reader)' for reading 'errorCode' then validating migration or rescuing key if failure 2018-04-22 19:18:35 +02:00
xdrm-brackets 8b6d5a12cd [client:client.internal] implemented 'rescue(y1, y2) error' for extracting response data + rescuing key 2018-04-22 19:17:55 +02:00
xdrm-brackets d759e85735 [client.keyset] added 'Rescue()' method to keyset 2018-04-22 18:56:58 +02:00
xdrm-brackets 3b282e397b [client:client] implemented 'Send(io.Writer)' [client:client.internal] implemented 'generateRequest', 'generateKeyWithConstraints', 'migrate' 2018-04-22 18:45:30 +02:00
xdrm-brackets fdab12841c [lib.timeid] updated 'uint' to 'uint32' 2018-04-22 18:44:32 +02:00
xdrm-brackets 27dcb81e5f [client.keyset] added Getter and Setter 'MigrationCode(<uint8|nil>) uint8' for migration code 2018-04-22 18:44:03 +02:00
xdrm-brackets 8ef698f4c3 [client.keyset] replace 'consumed<bool>' by 'mcode<uint8>' for migration code 2018-04-22 17:13:34 +02:00
xdrm-brackets 4521cf1830 [client:client.internal] fix, use pointer instead of value for update() 2018-04-22 16:02:39 +02:00
xdrm-brackets 09d514d5b9 [client:client] created public signatures 'Send(io.Writer) error' and 'Receive(io.Reader) error' 2018-04-22 01:25:17 +02:00
xdrm-brackets 2454751812 [client:client] moved private methods into {client:client.internal} 2018-04-22 01:19:42 +02:00
xdrm-brackets 046fed121a [lib.scha] cleanup 2018-04-22 01:16:01 +02:00
xdrm-brackets 544ee489a4 [context] min cleanup 2018-04-22 01:05:51 +02:00
xdrm-brackets 91512adbb2 [client.keyset] moved private methods into 'keyset.internal.go' 2018-04-22 01:04:07 +02:00
xdrm-brackets 3246c88e0d [client:client] adapted 'update' to {client:config} + renamed lowercase to privatise 2018-04-22 00:59:23 +02:00
xdrm-brackets 507c29398d [client:config] updated (eased) config management with 'Store(keyset.T)' and 'Fetch(keyset.T)' 2018-04-22 00:58:38 +02:00
xdrm-brackets 9785e8e573 [client:client] Created client initialisation with Update() that stores/fetches data using {client:config} system 2018-04-21 19:48:26 +02:00
xdrm-brackets 775eb33435 [client:config] config management to get 'io.Reader' and 'io.Writer' + config directory+files management for {client.keyset} to be stored/fetched 2018-04-21 19:47:44 +02:00
xdrm-brackets 9a787951b1 [client.keyset] removed 'max' that is now in 'ctx' 2018-04-21 19:46:37 +02:00
xdrm-brackets 69bcb46641 renamed default 'type struct {}' into 'T' because package name is explicit by itself 2018-04-21 18:33:20 +02:00
xdrm-brackets 930c35124f move [lib.context] to [context] 2018-04-21 18:20:35 +02:00
xdrm-brackets aa9b7e7f92 renamed [lib.scha/scha.go] into [lib.scha/hash.go] 2018-04-21 18:18:01 +02:00
xdrm-brackets 4eb7d6de25 [client.keyset] now secret size can be any but when 'Fetch()'-ing, it must be at least longer than the digest size (scha.HSIZE) 2018-04-21 17:39:28 +02:00
xdrm-brackets c9828e9807 [client.keyset] added 'consumption level' in Store/Fetch mecanism 2018-04-21 17:18:49 +02:00
xdrm-brackets d0225993fe [client.keyset] test minmod 2018-04-21 17:06:14 +02:00
xdrm-brackets 2560da5bbc [client.keyset] added test for 'Store()'/'Fetch()' mecanism 2018-04-21 17:04:17 +02:00
xdrm-brackets 703db73f30 [lib.context] added tests 2018-04-21 16:50:57 +02:00
xdrm-brackets 907f16245a [lib.context] updated + cleaned up [client.keyset] added tests + cleaned up 2018-04-21 16:39:24 +02:00
xdrm-brackets 938df1b63c [client.keyset] renamed 'Write(io.Writer)' to 'Store(io.Writer)' and 'Read(io.Reader)' to 'Fetch(io.Reader)' 2018-04-21 16:10:06 +02:00