Commit Graph

  • 1c46de629b added string buffer support git@daemon.de 2014-02-13 17:04:59 +01:00
  • 0a8206b3b0 update to new formats git@daemon.de 2014-02-13 15:33:51 +01:00
  • 7083084e4f finalized new export formats and fixed lots of bug introduced during last changes git@daemon.de 2014-02-13 15:33:17 +01:00
  • f8740cec68 generate keyid from pubs only, dont clear supplied passphrase (done in src) git@daemon.de 2014-02-13 15:32:27 +01:00
  • 3b5b04c069 fixed free() order for keysigs git@daemon.de 2014-02-13 15:31:42 +01:00
  • 823fc8bbe0 added check if input is not binary git@daemon.de 2014-02-13 15:30:23 +01:00
  • 75cdbbe835 continue to implement 4880 exports and stuff... TLINDEN 2014-02-13 00:06:55 +01:00
  • bf2500b335 updated unittests TLINDEN 2014-02-13 00:06:36 +01:00
  • 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. git@daemon.de 2014-02-12 16:47:24 +01:00
  • a78dd9c6eb added buffer_get_remainder() so I can fetch whatever is left in the buffer git@daemon.de 2014-02-12 16:46:50 +01:00
  • f849f506cc put keysig stuff into extra source git@daemon.de 2014-02-12 16:46:11 +01:00
  • 6d738ccbf8 changed public key export format to (slightly modified) RFC4880 style (openpgp format). Current state is totally unstable, it's not yet ready. TLINDEN 2014-02-12 00:37:41 +01:00
  • c9e236db20 added -F parameter (-F pbp or -F pcp, the latter being the default), which can be used to specify the key export format TLINDEN 2014-02-10 11:39:43 +01:00
  • f96cae9aa1 fixed bug with previously removed var definition TLINDEN 2014-02-10 11:39:12 +01:00
  • 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. TLINDEN 2014-02-10 11:37:42 +01:00
  • 79392eb6c7 (re-)added ucfree() which does memset(0) and free() afterwards TLINDEN 2014-02-10 11:36:50 +01:00
  • 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. TLINDEN 2014-02-10 11:34:05 +01:00
  • b5e8e0de03 enhanced a little TLINDEN 2014-02-10 11:33:20 +01:00
  • 57bcd9325b done TLINDEN 2014-02-10 11:33:00 +01:00
  • ab03a10340 sanitized pcp_unpadfour(), just return the number of zero padding, leave the input pointer untouched; fixed header TLINDEN 2014-02-10 08:46:52 +01:00
  • 91f94a532e removed redundant code and fixed an invalid read of size 1 in ...unpadfour() TLINDEN 2014-02-09 17:50:00 +01:00
  • 118428da45 fixed autogen script, didnt include config.h into pcp.h TLINDEN 2014-02-09 17:49:33 +01:00
  • 6829ea6fbc fixed catching of header string TLINDEN 2014-02-09 15:49:52 +01:00
  • ce73950920 added buffer_get_str() which allows to retrieve buffer contents as char * TLINDEN 2014-02-09 13:51:35 +01:00
  • 83a4d0bb88 rewrote z85 decoder, uses Buffer* class now TLINDEN 2014-02-09 13:50:48 +01:00
  • 82883d92ac oops TLINDEN 2014-02-08 20:37:33 +01:00
  • 5bbe95f6fe re-generated unittests check files due changed z85 padding TLINDEN 2014-02-08 20:36:40 +01:00
  • da8f40b596 changed padding, dont use a pad counter anymore, just add zeroes and remove them afterwards TLINDEN 2014-02-08 20:36:05 +01:00
  • b9841bfb06 continue new pk-expoert format TLINDEN 2014-02-08 20:35:34 +01:00
  • 8b19871046 even more open things... TLINDEN 2014-02-08 20:34:30 +01:00
  • 2d7a0d834c started with experimental pk export writer TLINDEN 2014-02-07 20:07:30 +01:00
  • 607f2be281 fixed missing newlines git@daemon.de 2014-02-07 16:59:12 +01:00
  • 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 git@daemon.de 2014-02-07 16:58:02 +01:00
  • cb873e3681 started with formalized key export format definition based on rfc4880 git@daemon.de 2014-02-07 16:56:57 +01:00
  • f94a9da803 added ucrealloc() git@daemon.de 2014-02-07 16:55:56 +01:00
  • e107759f5b fixed spaces git@daemon.de 2014-02-07 12:02:51 +01:00
  • 7f4bccfaff updated pod git@daemon.de 2014-02-07 11:55:44 +01:00
  • 181c5ddac4 finally fixed asymmetric encryption pbp<=>pcp, it now works TLINDEN 2014-02-06 20:09:55 +01:00
  • 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. git@daemon.de 2014-02-06 16:30:50 +01:00
  • d1d169b1fc updated format descriptions to be more formal and reproducible git@daemon.de 2014-02-06 11:26:45 +01:00
  • 4a12cb0c2c Merge branch 'master' of github.com:TLINDEN/pcp git@daemon.de 2014-02-06 09:52:50 +01:00
  • 95b6e6e985 - git@daemon.de 2014-02-06 09:52:31 +01:00
  • 8f24fc88f8 changed invalid // c++ comments to valid /* .. */ C comments TLINDEN 2014-02-05 20:41:16 +01:00
  • 6f3bdda6f1 autogen.sh now generates clean.sh which can be used to clean up the tree before comitting TLINDEN 2014-02-05 20:40:34 +01:00
  • f481457ad7 get rid of that autoconf stuff, das geht mir vielleicht auf die nerven verdammt nochmal... TLINDEN 2014-02-05 20:00:56 +01:00
  • e2125351d7 added unittest for sign+encrypt git@daemon.de 2014-02-05 14:04:55 +01:00
  • 7848867ac0 ++ version git@daemon.de 2014-02-05 13:10:07 +01:00
  • a89b16a15c fixed crypt+sign, now the sig contains the encrypted recipient list as well and is encrypted itself git@daemon.de 2014-02-05 13:09:20 +01:00
  • 5707ecbf9c added a generic _dump() function and put functions into its own C file... git@daemon.de 2014-02-05 13:08:34 +01:00
  • 192856446b fixed invalid usage about -c option (doesn't have a file parameter anymore) git@daemon.de 2014-02-05 13:08:01 +01:00
  • 42f700bf9c updated aconf bubble git@daemon.de 2014-02-05 13:07:35 +01:00
  • f607bf448c ... should really remove this autoconf stuff from github.. git@daemon.de 2014-02-03 12:20:25 +01:00
  • 2beebb7b68 more open stuff... git@daemon.de 2014-02-03 12:20:05 +01:00
  • 777fa01c74 fixed scrypt() call and pbp pk export signature git@daemon.de 2014-02-03 12:19:17 +01:00
  • 71013ac03d updated to changes in crypto.c TLINDEN 2014-02-02 16:06:51 +01:00
  • 90fbf2ccd7 fixed encrypted file header output (fwrite &uint8t isn't the same as fwrite uchar) TLINDEN 2014-02-02 16:05:38 +01:00
  • 1b1cdecf3f changed usage (--help) message, to be shorter and clearer TLINDEN 2014-01-30 20:55:23 +01:00
  • 871a3c7696 added git@daemon.de 2014-01-30 20:44:27 +01:00
  • 369398eea9 - git@daemon.de 2014-01-30 14:35:31 +01:00
  • bf0e592a03 pbp key support were still incompatible. now I can at least import pbp keys. git@daemon.de 2014-01-30 14:33:59 +01:00
  • 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 git@daemon.de 2014-01-30 13:16:26 +01:00
  • dbdaf38185 use a struct to fetch in a pbp key (pbp_pubkey_t) instead of manual parsing git@daemon.de 2014-01-29 12:53:42 +01:00
  • 68d8f640e6 fixed pbp import TLINDEN 2014-01-28 20:05:46 +01:00
  • 3f1bfef581 added PBP public key import/export compatibility mode (-b --pbpcompat) git@daemon.de 2014-01-28 16:53:26 +01:00
  • fa9d8ed800 don't print the whole usage if called wrongly, just tell about it. git@daemon.de 2014-01-28 13:33:38 +01:00
  • df6cd442fb more todo git@daemon.de 2014-01-28 13:27:16 +01:00
  • c18686804b fixed malloc() cast git@daemon.de 2014-01-28 12:21:03 +01:00
  • 5ae1d07067 added CBC encryption mode (configure --enable-cbc) git@daemon.de 2014-01-28 12:20:30 +01:00
  • ad009a8142 changed detach sig verification commandline (-a => -f <file>) git@daemon.de 2014-01-28 12:19:25 +01:00
  • 130177f6e9 updated. git@daemon.de 2014-01-27 16:13:58 +01:00
  • 3c9785e38e updated POD to reflect recent changes git@daemon.de 2014-01-27 16:13:35 +01:00
  • 770d8cb234 added crypt+sign support git@daemon.de 2014-01-27 16:12:43 +01:00
  • 038439bbfb Merge branch 'master' of github.com:TLINDEN/pcp git@daemon.de 2014-01-27 11:30:30 +01:00
  • 78616a5848 b git@daemon.de 2014-01-27 11:26:40 +01:00
  • 78987a1d27 (re-)added detached signature support, now with 32k-blockwise reading of files, enabled with -a. TLINDEN 2014-01-26 16:02:47 +01:00
  • 52a7509fe2 sig calculation and output follows pbp scheme. unittests, doc and detached sigs still missing. TLINDEN 2014-01-26 11:57:23 +01:00
  • 7b7aa6d395 added pcp_ed_verify_buffered() [doesnt work yet, needs debugging] TLINDEN 2014-01-23 23:36:57 +01:00
  • 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. git@daemon.de 2014-01-23 15:40:06 +01:00
  • f09d4774cb added unittest for symetric crypto TLINDEN 2014-01-22 23:29:28 +01:00
  • 1efff67d37 implemented pbp-compatible self encryption mode (symetrical encryption using scrypt(passphrase, static nonce), no pk) TLINDEN 2014-01-22 23:20:30 +01:00
  • 7b56ab60a6 changed asym decryption to pbp scheme, compatibility untested yet, but works pcp-internally already git@daemon.de 2014-01-22 16:23:30 +01:00
  • 26d4ee43c5 started to implement pbp compatibility, added support for multiple -r options, using it now to look through the vault for recipients, -i to follow. current state: encrypt produces output without errors or crashes; decrypt is incompatible for the moment. git@daemon.de 2014-01-21 16:11:04 +01:00
  • 6714dd1c3b prepared recipient list support git@daemon.de 2014-01-20 16:07:01 +01:00
  • 67ba04f3bd moved file en/de-cryption from src to libpcp, which makes it way easier to implement pbp compatibility git@daemon.de 2014-01-20 10:16:05 +01:00
  • 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. TLINDEN 2014-01-19 23:58:53 +01:00
  • e20a0683c6 dropped "derived key feature", pk-encryption now uses a random keypair on the sender side, puts the public part of it into the encrypted output and drops the keypair, no more key-id will be sent over the wire, be it hashed or whatelse. TLINDEN 2014-01-19 23:57:11 +01:00
  • 79cd096be5 Fixed incorrect implementation of key stuff: curve25519 and ed25519 keys are now generated separately, the pcp-proprietary "derived key" feature has been dropped. TLINDEN 2014-01-19 23:54:53 +01:00
  • 691786cc68 changed key derivation function, using scrypt (from tarsnap) now instead of my own derivation function git@daemon.de 2014-01-16 15:25:09 +01:00
  • ce0ec4d5ec Merge branch 'master' of github.com:TLINDEN/pcp git@daemon.de 2014-01-14 15:06:32 +01:00
  • 2daf5870fa finally fixed issue#1, compilation under OpenBSD now works as it should, I had some invalid defines in platform.h git@daemon.de 2014-01-14 15:05:18 +01:00
  • 7883de06bf start help text on same line as define TLINDEN 2014-01-13 18:52:26 +01:00
  • 131ad9f959 try to fix issue#1, compilation problem on openbsd git@daemon.de 2014-01-13 11:04:32 +01:00
  • a2ae9e1762 updated TLINDEN 2013-12-19 16:56:32 +01:00
  • 69e1d2ee47 added error checking TLINDEN 2013-12-19 16:54:16 +01:00
  • fa317c8dec fixed invalid echo -n calls, which didnt work under /bin/sh TLINDEN 2013-12-19 16:53:08 +01:00
  • a426558155 added sodium_init() TLINDEN 2013-12-19 12:38:10 +01:00
  • 7fc71b67f7 added sodium_init() TLINDEN 2013-12-19 12:37:03 +01:00
  • 3a107841bb fixed casts in alternate functions. TLINDEN 2013-12-19 12:31:04 +01:00
  • 89b83dda12 fixed type typo in operator= of Key and PubKey. TLINDEN 2013-12-19 12:30:26 +01:00
  • c38e4d9613 added sodium_init() which were missing and lead to problems on big endian machines. TLINDEN 2013-12-19 11:51:13 +01:00