TLINDEN
5cc0a5679f
switched to sodium scrypt(), which should be more portable
2015-04-17 17:13:20 +02:00
git@daemon.de
e033df7156
changed z85 padding (incompatible to previous pcp versions!):
...
now we padd with zeroes as usual but append 4 bytes to the
raw input, the last one indicates the pad count. It's always
present, even if no padding occurred (the pad blob will then
read 0000).
This fixes the issue of earlier versions where trailing zeroes
in the original input (between block boundaries) have been
removed. Since we now add the pad counter, we know how many
zeroes to remove. If the original chunk already ended with zeroes
they will left untouched.
Re-created all test keys/data to match the change.
Also, the pcp_z85_encode() function now haves another flag
doblock. If set to 1, the function does the 72 chars per line
block creation itself, otherwise it just returns the z85 string
without any newlines added. Required by pcpstream class.
2014-07-31 16:41:20 +02:00
TLINDEN
db264ff16b
fit latest changes
2014-05-06 11:49:09 +02:00
TLINDEN
4253e1088f
rewrote z85 stream decoder (again), using hyphens again. clearsig doesn't work yet, a newline problem...
2014-03-01 18:51:25 +01:00
TLINDEN
99f611ab80
fixed tilde z85 headers in signature stuff as well
2014-02-24 19:52:57 +01:00
git@daemon.de
0a8206b3b0
update to new formats
2014-02-13 15:33:51 +01:00
TLINDEN
bf2500b335
updated unittests
2014-02-13 00:06:36 +01:00
TLINDEN
5bbe95f6fe
re-generated unittests check files due changed z85 padding
2014-02-08 20:36:40 +01:00
TLINDEN
05db2f1204
modifications to match recent changes. that's just preparation of more changes towards PBP-Compatibility. Current state is UNSTABLE. See TODO for details whats left to do.
2014-01-19 23:58:53 +01:00
git@daemon.de
691786cc68
changed key derivation function, using scrypt (from tarsnap) now instead of my own derivation function
2014-01-16 15:25:09 +01:00
TLINDEN
ff78754ddd
added raw library encryption test with static keys, cipher and message
2013-11-24 19:59:55 +01:00
TLINDEN
80ec5014a8
fixed z85 encoding overflow bug, fixed signature code on big-endian systems.
2013-11-19 17:17:30 +01:00
TLINDEN
314dbde0b9
finally it works on aix, at least sec/pub key stuff, signatures still hang
2013-11-19 10:06:24 +01:00
TLINDEN
c4940b966c
more aix/big-endian fixes
2013-11-18 21:48:24 +01:00
TLINDEN
5e8324bb0b
fixed yet another endianess problem, now always using the raw key values for export, sotrage and checksum calculation
2013-11-18 17:38:03 +01:00
TLINDEN
7cba8ec0bc
added tests for pcp -t -I $file determination mode
2013-11-12 19:44:22 +01:00
TLINDEN
f51d753a3e
tuned yaml and dump functions to the new key format, re-generated the testkeys
2013-11-10 14:32:48 +01:00
TLINDEN
71d7121c87
fixed key generation, now the ed25519 key is derived from a seed
...
and the curve25519 key is derived from the ed25519 key. the encrypted
part now contains the ed25519 secret.
2013-11-10 14:25:36 +01:00
git@daemon.de
60ee58b106
changed key format, now includes the ed25519 pubkey for signing.
2013-11-08 12:50:04 +01:00
TLINDEN
d598511a7e
fixed key export: now using big endian byte order for exported
...
keys, so they're platform independent when transported.
2013-11-04 14:03:43 +01:00
TLINDEN
bf5556e1ec
bugfix in encryption key computing, added new feature: derived public keys
2013-11-02 11:02:36 +01:00
TLINDEN
2d7babae35
initial commit
2013-10-28 22:50:05 +01:00