Commit Graph

210 Commits

Author SHA1 Message Date
TLINDEN
0eb7de0921 fixed json secret key export (now export the whole encrypted blob, since only that blob is being used to parse the key). added support to import json secret keys 2015-07-09 18:38:27 +02:00
TLINDEN
da6dda795b fixed error return to 0, -1 lead to int overflows 2015-07-09 18:37:33 +02:00
TLINDEN
2d3fc9d8e3 added json pubkey import 2015-07-08 23:53:11 +02:00
TLINDEN
775935a958 store ed25519 key sig as well (forgot that previously) 2015-07-08 23:52:46 +02:00
git@daemon.de
e508616812 re-added pcp_import_pub(), still in use by cpp api 2015-07-08 12:00:43 +02:00
TLINDEN
579715f560 added full json support for -p, -s, -t and -K (though only pubs for the latter at the moment) 2015-07-08 01:24:25 +02:00
TLINDEN
4d68e52945 added _hex2bin() 2015-07-08 01:23:10 +02:00
git@daemon.de
6ce39a21d8 fixed compile error (unused var) 2015-07-07 09:46:23 +02:00
TLINDEN
57517a1000 abandoned yaml, perl and c key exporters, added json exporter using libjansson, enable with --with-json 2015-07-06 23:02:04 +02:00
git@daemon.de
0dbf5df943 added checks to avoid overflows caused by user supplied field sizes 2015-06-26 11:13:03 +02:00
TLINDEN
65d039501d added option -X 2015-05-30 11:11:20 +02:00
TLINDEN
d019ec4b9e removed unused code (base85 and crc32) 2015-04-19 19:49:13 +02:00
TLINDEN
a0926f4c82 calling sodium_init() from ptx_new() since required for everything anyway 2015-04-18 20:26:31 +02:00
TLINDEN
62281565d9 removed tarsnaps scrypt(), using libsodiums instead 2015-04-17 17:40:10 +02:00
TLINDEN
5cc0a5679f switched to sodium scrypt(), which should be more portable 2015-04-17 17:13:20 +02:00
TLINDEN
9737893e0a fixed includes and function checks for scrypt 2015-04-17 14:14:38 +02:00
TLINDEN
177ad8a8f2 more debuggin...2 2015-04-17 13:32:48 +02:00
TLINDEN
8c024afad9 more debuggin... 2015-04-17 13:22:34 +02:00
TLINDEN
63539612ca debug sec key import 2015-04-17 13:06:01 +02:00
TLINDEN
ce7e1c378a fixed double free of buffer blob in pcp_import_pub_pbp 2015-04-17 11:41:43 +02:00
TLINDEN
8d552ddf43 fixed invalid size used in zeroing buf_clear 2015-04-17 11:41:18 +02:00
TLINDEN
726793f032 fixed memory leak, caused by change from yesterday 2015-04-17 09:44:22 +02:00
TLINDEN
c86d497e09 fixed bug in pcp_encrypt_stream_sym(), freed buffer before using it in update_hash() 2015-04-16 21:23:27 +02:00
TLINDEN
30bd90381c fix #9: enable verifying own signature for normal sigs as well 2015-04-01 20:47:35 +02:00
TLINDEN
677eb92001 fix #9: enable verifying own signature 2015-04-01 20:40:08 +02:00
TLINDEN
9e2050df74 fix #7 part one, initialize ctr 2015-03-31 17:27:20 +02:00
TLINDEN
af2edba2d7 oops 2015-03-31 17:26:24 +02:00
TLINDEN
8535b50f94 added -M; removed CBC support, fixed asym-self-mode 2015-01-17 15:04:07 +01:00
TLINDEN
54e21f5a00 get rid of snprintf() 2015-01-17 15:00:15 +01:00
TLINDEN
f9bb29f2e5 forgot to remove tmp test code 2015-01-16 00:18:01 +01:00
TLINDEN
cf3f93e5a9 typo 2015-01-16 00:16:15 +01:00
TLINDEN
2e7479525f turned crypto_secretbox nonces into counters, thereby implementing counter mode (CTR mode). we use variable size counters, max counter size is 184 bit, max implemented currently are 64 bit, multiply by 32kb and you get the maximum file size supported by pcp encryption 2015-01-16 00:13:02 +01:00
TLINDEN
3c30d8871b using secure memory where applicable using sodium_malloc or sodium_mlock, where not 2015-01-13 13:07:32 +01:00
TLINDEN
f0494385e1 now using setrlimit() if present and if not in debug mode; applied changes for removed files 2015-01-13 13:06:20 +01:00
TLINDEN
54986fa6dc migrated to libsodium _easy() crypto functions, thus getting rid of my hand made padding mess 2015-01-13 13:04:12 +01:00
TLINDEN
7dbd011d8d fixed Makefiles for "make dist" 2015-01-07 19:10:52 +01:00
git@daemon.de
6600d79325 fixed linking to be clang compatible, made -g and -O? configurable 2015-01-07 12:31:21 +01:00
git@daemon.de
e915bfe2ed fix invalid memset on buffer backed stream in ps_end() 2014-12-24 11:17:48 +01:00
git@daemon.de
3061192193 fail if trying to encrypt using an empty input buffer 2014-12-22 16:23:38 +01:00
git@daemon.de
533ca6b993 added %p to buffer_info() 2014-12-22 16:23:09 +01:00
TLINDEN
85db8c664c fixed glibc deprecated _BSD_SOURCE 2014-12-19 20:31:55 +01:00
TLINDEN
6f47b86f98 added pcpkey_setowner(), removed pcp[pub]key_exists() (unused currently) 2014-12-14 14:36:08 +01:00
TLINDEN
5b63832fc5 fix bug #4, invalid size for format 2014-12-14 12:49:12 +01:00
git@daemon.de
2868caa7de fixed format error 2014-08-14 19:24:42 +02:00
git@daemon.de
298e6b1469 added anonymous sender key (-A) support 2014-08-11 15:45:47 +02:00
TLINDEN
e022a9e842 fixed memory leaks 2014-08-08 18:40:53 +02:00
TLINDEN
019df8e4c5 fixed memory leaks 2014-08-07 21:33:52 +02:00
TLINDEN
e8f6a8635c added pcphash_cleanpub() to free local pubkey hashes, which are not attached to any context 2014-08-07 21:32:48 +02:00
TLINDEN
9672785271 fixed memory leaks 2014-08-07 00:02:43 +02:00
TLINDEN
8954df7110 buffer_get_remainder() return pointer to chunk, not allocated copy anymore 2014-08-07 00:02:05 +02:00