Commit Graph

25 Commits

Author SHA1 Message Date
TLINDEN
677eb92001 fix #9: enable verifying own signature 2015-04-01 20:40:08 +02:00
TLINDEN
e022a9e842 fixed memory leaks 2014-08-08 18:40:53 +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
da9891ff81 put previously global error handling and key hashes into ptx (pcp context) to make libpcp threadsafe. 2014-05-04 17:11:03 +02:00
git@daemon.de
ad0c0bf0f7 fixed invalid sigstart initial size 2014-03-10 17:02:29 +01:00
TLINDEN
93a9f2d307 fixed signature headers, fixed z85 string parser, it didnt properly catch END headers 2014-03-02 10:35:51 +01:00
TLINDEN
8b955b5e92 added -Wextra -Werror and fixed everything it had to mecker about 2014-02-25 18:05:32 +01:00
git@daemon.de
3b1db06529 changed all occurrences of unsigned char to byte (defined in defines.h) to make the code more precise about sizes. 2014-02-25 11:09:58 +01:00
TLINDEN
99f611ab80 fixed tilde z85 headers in signature stuff as well 2014-02-24 19:52:57 +01:00
TLINDEN
cf8402aec0 added pcpstream usage to signature lib code as well 2014-02-15 17:39:16 +01:00
TLINDEN
6d738ccbf8 changed public key export format to (slightly modified) RFC4880 style (openpgp format).
Current state is totally unstable, it's not yet ready.
2014-02-12 00:37:41 +01:00
TLINDEN
a3468a45cf changed internal key format again, now we've got a master-key-signing keypair as well, used for exports. also, fixed a security hole in pcp_keynew(): the actual key material, unencrypted, have been stored on heap and not zeroed after exit. 2014-02-10 11:34:05 +01:00
TLINDEN
8f24fc88f8 changed invalid // c++ comments to valid /* .. */ C comments 2014-02-05 20:41:16 +01:00
git@daemon.de
777fa01c74 fixed scrypt() call and pbp pk export signature 2014-02-03 12:19:17 +01:00
TLINDEN
78987a1d27 (re-)added detached signature support, now with 32k-blockwise reading of files, enabled with -a. 2014-01-26 16:02:47 +01:00
TLINDEN
52a7509fe2 sig calculation and output follows pbp scheme. unittests, doc and
detached sigs still missing.
2014-01-26 11:57:23 +01:00
TLINDEN
7b7aa6d395 added pcp_ed_verify_buffered() [doesnt work yet, needs debugging] 2014-01-23 23:36:57 +01:00
git@daemon.de
c717c060ec re-implemented signature system to match the standard (orinal input, including sig for full sig; or 32k blockwise hash of input and sig from hash attached to original input without the hash), verify_buffered currently not implemented, armored sig only for output. 2014-01-23 15:40:06 +01:00
TLINDEN
04dbf19381 fixed yet another endian issue (I used the wrong define for it) 2013-11-19 21:02:59 +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
72935b0669 last fix was wrong, smlen was invalid instead 2013-11-16 15:53:48 +01:00
TLINDEN
e5afdbd209 fixed invalid malloc of sig message (forgot 1 byte for trailing 0) 2013-11-16 15:22:22 +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
git@daemon.de
e6733e5e56 added signature support (doesn't work yet) 2013-11-08 09:40:51 +01:00