Commit Graph

93 Commits

Author SHA1 Message Date
TLINDEN
e78269fceb added pcpstream, which wraps buffers or file i/o, so crypto code doesn't have to know if it works with a file or a buffer. makes the api much more flexible 2014-02-15 13:10:51 +01:00
TLINDEN
347f155341 catch up with api and system changes in libpcp. added c++ buffer class as well 2014-02-14 16:40:09 +01:00
TLINDEN
604006994f added C pk export 2014-02-13 20:20:07 +01:00
TLINDEN
01cf82b2df fixed segfault when fatals_ifany() called multiple times 2014-02-13 20:19:32 +01:00
git@daemon.de
7408ebd90c added yaml and perl pubkey export formats (c and python will follow) 2014-02-13 17:05:22 +01:00
git@daemon.de
1c46de629b added string buffer support 2014-02-13 17:04:59 +01:00
git@daemon.de
823fc8bbe0 added check if input is not binary 2014-02-13 15:30:23 +01:00
TLINDEN
75cdbbe835 continue to implement 4880 exports and stuff... 2014-02-13 00:06:55 +01:00
git@daemon.de
621cece568 changed secret key export format, now we encrypt the whole thing, and we use an extra passphrase to do so. import wrapper in src/ not implemented yet. 2014-02-12 16:47:24 +01:00
git@daemon.de
a78dd9c6eb added buffer_get_remainder() so I can fetch whatever is left in the buffer 2014-02-12 16:46:50 +01:00
git@daemon.de
f849f506cc put keysig stuff into extra source 2014-02-12 16:46:11 +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
efdf2987ae moved the actual public key export code out into the lib (mgmt.c). cmdline client does only armor the blobs, if neccessary. Also, armored pubkey exports don't contain any comments anymore. 2014-02-10 11:37:42 +01:00
TLINDEN
79392eb6c7 (re-)added ucfree() which does memset(0) and free() afterwards 2014-02-10 11:36:50 +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
b5e8e0de03 enhanced a little 2014-02-10 11:33:20 +01:00
TLINDEN
ab03a10340 sanitized pcp_unpadfour(), just return the number of zero padding, leave the input pointer untouched; fixed header 2014-02-10 08:46:52 +01:00
TLINDEN
118428da45 fixed autogen script, didnt include config.h into pcp.h 2014-02-09 17:49:33 +01:00
TLINDEN
6829ea6fbc fixed catching of header string 2014-02-09 15:49:52 +01:00
TLINDEN
ce73950920 added buffer_get_str() which allows to retrieve buffer contents as char * 2014-02-09 13:51:35 +01:00
TLINDEN
83a4d0bb88 rewrote z85 decoder, uses Buffer* class now 2014-02-09 13:50:48 +01:00
TLINDEN
5bbe95f6fe re-generated unittests check files due changed z85 padding 2014-02-08 20:36:40 +01:00
TLINDEN
b9841bfb06 continue new pk-expoert format 2014-02-08 20:35:34 +01:00
TLINDEN
2d7a0d834c started with experimental pk export writer 2014-02-07 20:07:30 +01:00
git@daemon.de
5161e15c69 added Buffer "class" based on openssh/buffer.c, which is a really beautiful idea. I'll use this for file i/o and data handling 2014-02-07 16:58:02 +01:00
git@daemon.de
cb873e3681 started with formalized key export format definition based on rfc4880 2014-02-07 16:56:57 +01:00
git@daemon.de
f94a9da803 added ucrealloc() 2014-02-07 16:55:56 +01:00
git@daemon.de
7f4bccfaff updated pod 2014-02-07 11:55:44 +01:00
TLINDEN
181c5ddac4 finally fixed asymmetric encryption pbp<=>pcp, it now works 2014-02-06 20:09:55 +01:00
git@daemon.de
7d715ba880 finally got pbp key export/import to work. in order to make it happen, pbp needs to be patched (see pbp issue#10 for details!) to enable padding. 2014-02-06 16:30:50 +01:00
TLINDEN
8f24fc88f8 changed invalid // c++ comments to valid /* .. */ C comments 2014-02-05 20:41:16 +01:00
TLINDEN
f481457ad7 get rid of that autoconf stuff, das geht mir vielleicht auf die nerven verdammt nochmal... 2014-02-05 20:00:56 +01:00
git@daemon.de
7848867ac0 ++ version 2014-02-05 13:10:07 +01:00
git@daemon.de
a89b16a15c fixed crypt+sign, now the sig contains the encrypted recipient list as well and is encrypted itself 2014-02-05 13:09:20 +01:00
git@daemon.de
5707ecbf9c added a generic _dump() function and put functions into its own C file... 2014-02-05 13:08:34 +01:00
git@daemon.de
42f700bf9c updated aconf bubble 2014-02-05 13:07:35 +01:00
git@daemon.de
777fa01c74 fixed scrypt() call and pbp pk export signature 2014-02-03 12:19:17 +01:00
TLINDEN
1b1cdecf3f changed usage (--help) message, to be shorter and clearer 2014-01-30 20:55:23 +01:00
git@daemon.de
369398eea9 - 2014-01-30 14:35:31 +01:00
git@daemon.de
bf0e592a03 pbp key support were still incompatible. now I can at least import pbp keys. 2014-01-30 14:33:59 +01:00
git@daemon.de
a822851c14 last update was wrong, since pbp exported keys are base85 encoded, fixed that. incorporated the git/base85.c and added source padding to it 2014-01-30 13:16:26 +01:00
git@daemon.de
dbdaf38185 use a struct to fetch in a pbp key (pbp_pubkey_t) instead of manual parsing 2014-01-29 12:53:42 +01:00
TLINDEN
68d8f640e6 fixed pbp import 2014-01-28 20:05:46 +01:00
git@daemon.de
3f1bfef581 added PBP public key import/export compatibility mode (-b --pbpcompat) 2014-01-28 16:53:26 +01:00
git@daemon.de
c18686804b fixed malloc() cast 2014-01-28 12:21:03 +01:00
git@daemon.de
5ae1d07067 added CBC encryption mode (configure --enable-cbc) 2014-01-28 12:20:30 +01:00
git@daemon.de
130177f6e9 updated. 2014-01-27 16:13:58 +01:00
git@daemon.de
770d8cb234 added crypt+sign support 2014-01-27 16:12:43 +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