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
TLINDEN
a9b2796af2
renamed 'public' to 'pub' to avoid conflict with c++ api
2013-11-29 20:01:42 +01:00
TLINDEN
ff78754ddd
added raw library encryption test with static keys, cipher and message
2013-11-24 19:59:55 +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
0e3835bf97
added GPLv3 disclaimer to everything.
2013-11-04 17:43:22 +01:00
TLINDEN
2d7babae35
initial commit
2013-10-28 22:50:05 +01:00