Thomas von Dein
b8008d1207
removed endian conversion code, now we just write in big-endian on output with shifts, not swaps etc
2016-10-20 23:14:14 +02:00
TLINDEN
fcc16e17f4
more verbosity on -v
2016-08-26 15:45:04 +02:00
TLINDEN
9132dd53bc
using -v instead of -D to show number of recipients
2016-08-24 21:26:37 +02:00
git@daemon.de
ab5b6c0b13
display number of recipients with -D -d, see: http://www.daemon.de/blog/2017/08/24/436/how-backdoor-store-and-forward-public-key-crypto/ for details
2016-08-24 17:25:57 +02:00
TLINDEN
671352bc29
unfortunately my tab/spc config was wrong for a couple of years. fixed all tabs=>spaces+re-indent
2016-05-09 22:24:13 +02:00
TLINDEN
e847e7057d
fix #14 : use longterm secret key for signing in -Ac mode (anonymous encrypt+sign)
2015-12-07 14:13:27 +01:00
git@daemon.de
4e5c27c58c
rm dbg print, fix #13
2015-10-23 12:25:52 +02:00
TLINDEN
ae5be44182
fixed _gen_ctr_nonce(), reported in #12 : invalid ctr comparision did lead to counter underflow
2015-10-14 19:53:03 +02:00
git@daemon.de
3a8d8c010f
fixed memory leak during decrypt, reported in #10
2015-10-12 12:17:51 +02:00
TLINDEN
bbdda67a6e
using constant time memcmp by C.Meessen
2015-08-27 11:19:24 +02:00
TLINDEN
c363dce7de
using libsodiums size constants everywhere (keysizes and the likes)
2015-08-15 20:38:33 +02:00
TLINDEN
362f7dff6b
added support for authenticated hashes
2015-07-21 14:18:03 +02:00
git@daemon.de
0811957a46
added -C to generate a blake2 checksum of one or more files
2015-07-17 16:22:12 +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
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
9e2050df74
fix #7 part one, initialize ctr
2015-03-31 17:27:20 +02:00
TLINDEN
8535b50f94
added -M; removed CBC support, fixed asym-self-mode
2015-01-17 15:04:07 +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
54986fa6dc
migrated to libsodium _easy() crypto functions, thus getting rid of my hand made padding mess
2015-01-13 13:04:12 +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
298e6b1469
added anonymous sender key (-A) support
2014-08-11 15:45:47 +02:00
TLINDEN
7542128486
fixed memory leaks
2014-08-06 01:23:32 +02:00
TLINDEN
c66c7ae15c
added own file type for crypt+sign, now signing the encrypted result, not the clear message.
...
using 64bit integers for time vars in key ex/im_ports
2014-05-06 11:50:28 +02:00
TLINDEN
86e815346a
Merge branch 'master' of github.com:TLINDEN/pcp
...
Conflicts:
libpcp/crypto.c
2014-05-04 17:14:16 +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
0476fa0795
get rid of static buffers
2014-03-18 09:56:30 +01:00
git@daemon.de
080456219a
removed unused vars
2014-03-14 19:50:12 +01:00
git@daemon.de
e2a509f30b
fixed early free() and invalid malloc of pubkey (with size of skey)
2014-03-10 17:01:35 +01:00
git@daemon.de
97f4d14d3b
finally fixed all stream related problems, z85 transparent en/decoding works, unittests all ok.
2014-02-27 13:55:43 +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
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
db47cbd95a
fixed pbp encryption fix, no more size field in reclist
2014-02-13 20:21:32 +01:00
TLINDEN
75cdbbe835
continue to implement 4880 exports and stuff...
2014-02-13 00:06:55 +01:00
TLINDEN
b9841bfb06
continue new pk-expoert format
2014-02-08 20:35:34 +01:00
TLINDEN
181c5ddac4
finally fixed asymmetric encryption pbp<=>pcp, it now works
2014-02-06 20:09:55 +01:00
TLINDEN
8f24fc88f8
changed invalid // c++ comments to valid /* .. */ C comments
2014-02-05 20:41:16 +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
TLINDEN
90fbf2ccd7
fixed encrypted file header output (fwrite &uint8t isn't the same as fwrite uchar)
2014-02-02 16:05:38 +01:00
git@daemon.de
5ae1d07067
added CBC encryption mode (configure --enable-cbc)
2014-01-28 12:20:30 +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
1efff67d37
implemented pbp-compatible self encryption mode (symetrical encryption using scrypt(passphrase, static nonce), no pk)
2014-01-22 23:20:30 +01:00
git@daemon.de
7b56ab60a6
changed asym decryption to pbp scheme, compatibility untested yet, but works pcp-internally already
2014-01-22 16:23:30 +01:00
git@daemon.de
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.
2014-01-21 16:11:04 +01:00
git@daemon.de
67ba04f3bd
moved file en/de-cryption from src to libpcp, which makes it way easier to
...
implement pbp compatibility
2014-01-20 10:16:05 +01:00