Commit Graph

131 Commits

Author SHA1 Message Date
TLINDEN
9fae3ae869 fix of bug#6, typo in type name, take2 2015-03-27 19:01:56 +01:00
TLINDEN
c07eb761e1 fix of bug#6, typo in type name 2015-03-27 18:52:14 +01:00
TLINDEN
8535b50f94 added -M; removed CBC support, fixed asym-self-mode 2015-01-17 15:04:07 +01:00
TLINDEN
c0a4f7f887 bumped version to 0.2.5 2015-01-17 15:02:03 +01:00
TLINDEN
ea73c63c1c rm unused func 2015-01-17 15:00:33 +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
10f4ffa05a fixed doxygen errors 2015-01-11 13:14:02 +01:00
git@daemon.de
7b9817a9c0 added symlink so it can be installed as well 2015-01-05 12:56:26 +01:00
git@daemon.de
5e2ee0aef2 bump version to 0.2.4 2014-12-24 11:19:01 +01:00
TLINDEN
1e3f6c8bc2 yet another try to fix #4, now tested on another linux system 2014-12-20 20:10:08 +01:00
TLINDEN
6f47b86f98 added pcpkey_setowner(), removed pcp[pub]key_exists() (unused currently) 2014-12-14 14:36:08 +01:00
git@daemon.de
298e6b1469 added anonymous sender key (-A) support 2014-08-11 15:45:47 +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
git@daemon.de
a3f1bdaa2e added buffer_fwd_offset() so I don't have to alloc mem to ignore some chunk of a buffer 2014-08-06 20:19:28 +02:00
git@daemon.de
e033df7156 changed z85 padding (incompatible to previous pcp versions!):
now we padd with zeroes as usual but append 4 bytes to the
raw input, the last one indicates the pad count. It's always
present, even if no padding occurred (the pad blob will then
read 0000).
This fixes the issue of earlier versions where trailing zeroes
in the original input (between block boundaries) have been
removed. Since we now add the pad counter, we know how many
zeroes to remove. If the original chunk already ended with zeroes
they will left untouched.
Re-created all test keys/data to match the change.
Also, the pcp_z85_encode() function now haves another flag
doblock. If set to 1, the function does the 72 chars per line
block creation itself, otherwise it just returns the z85 string
without any newlines added. Required by pcpstream class.
2014-07-31 16:41:20 +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
9d2d02221b added dump function 2014-05-06 11:49:59 +02:00
git@daemon.de
e11c295b42 fixed integer overflows when importing keys with invalid header sizes (or invalid headers, that is) 2014-05-05 11:59:54 +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
TLINDEN
322a135ee3 using Buffer instead of void for key2blob storage directly 2014-03-17 18:04:26 +01:00
TLINDEN
b3851f62e8 revert mode changes made by windows devel system (sic) 2014-03-17 17:20:29 +01:00
git@daemon.de
9e234600ca converted the arc4* function wrappers to makros 2014-03-17 17:06:14 +01:00
git@daemon.de
2e337c3aeb made the platform replacement functions extern 2014-03-17 15:19:56 +01:00
git@daemon.de
979cdd5c99 fixed unittest.pl - more portable 2014-03-15 19:02:08 +01:00
scip
a1cfe16c3c (back) ported win32 32bit compatibility along with lots of fixes 2014-03-15 17:26:42 +01:00
git@daemon.de
770d464dd1 added inline stdnstr() implementation for systems where it doesnt exists (e.g. linux) 2014-03-10 16:58:48 +01:00
git@daemon.de
71faa88592 portability fixes (compiles under macosx 5.8 as well, probably on newer ones as well) 2014-03-08 19:27:52 +01:00
git@daemon.de
1852a8b7f9 removed -S and -P, replaced by -K, keymgmt determines key type automatically 2014-03-04 23:05:47 +01:00
TLINDEN
b640fe6743 fixed keysig saving (forgot the id), enhancements on cmdline 2014-03-02 18:05:45 +01:00
TLINDEN
93a9f2d307 fixed signature headers, fixed z85 string parser, it didnt properly catch END headers 2014-03-02 10:35:51 +01:00
TLINDEN
4253e1088f rewrote z85 stream decoder (again), using hyphens again. clearsig doesn't work yet, a newline problem... 2014-03-01 18:51:25 +01:00
git@daemon.de
b8552af5e9 - broken - reimplementing z85 decoder, using hyphens again, doesn't work yet... 2014-03-01 11:58:10 +01:00
git@daemon.de
0d86dee4ee fixed doc 2014-02-27 13:57:24 +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
git@daemon.de
504ff55a00 added buffer_get_chunk_tobuf() which copies some chunk from one buffer to the other without a temporary variable 2014-02-26 15:27:53 +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
21b0ea38db fixed doc 2014-02-25 14:32:44 +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
git@daemon.de
cbc45f5fa1 added is_utf8() check to _buffer_is_binary() so that utf8 comments inside z85 encoded data doesn't count as binary 2014-02-25 11:08:59 +01:00
git@daemon.de
51858aeda2 changed z85 header and comment syntax and parser 2014-02-24 16:59:04 +01:00
TLINDEN
9a5c8a3547 added doc 2014-02-23 11:04:15 +01:00
TLINDEN
272f7b3dfb added ps_finish() to write the remainder out (if any), split writing into a couple of helpers 2014-02-22 19:58:56 +01:00
TLINDEN
cfb8207ac2 added automatically z85 encoding/decoding (again, but this time better) 2014-02-22 14:52:32 +01:00
TLINDEN
fe1ea9cb76 Revert "rm html stuff from repo, changes too often. enhanced pcpstream"
This reverts commit 82b05b768e.
2014-02-21 20:35:10 +01:00
git@daemon.de
82b05b768e rm html stuff from repo, changes too often. enhanced pcpstream 2014-02-21 19:56:01 +01:00
TLINDEN
30481fed9a added Pcpstream example 2014-02-20 21:02:52 +01:00