75 Commits

Author SHA1 Message Date
Thomas von Dein
9c78f3ad63 last perl tests migrated to unittests.sh 2016-10-25 21:33:16 +02:00
Thomas von Dein
f182c64796 regen 2016-10-21 10:23:01 +02:00
Thomas von Dein
f664cc24c4 bump 2016-10-20 23:12:00 +02:00
TLINDEN
a67149229f added is_utf8 license 2016-01-15 21:06:18 +01:00
git@daemon.de
c7108ec47f fixed stream-reader bug on aix@ppc, which ignored the last z85 pkt sometimes due invalid call to ps_end() 2015-10-16 17:25:17 +02:00
git@daemon.de
4165e5d996 add aix pipe bug 2015-10-15 17:18:28 +02:00
git@daemon.de
8fb7369d64 regenerated 2015-08-17 20:14:41 +02:00
TLINDEN
d04e5f3baf fixed decrypt from out buf 2015-08-17 11:17:12 +02:00
TLINDEN
32030afd62 fix double free, add todo 2015-08-16 21:34:39 +02:00
TLINDEN
05741acd1a found another bug 2015-08-15 20:37:50 +02:00
TLINDEN
420e48d4e3 new error 2015-08-15 16:31:11 +02:00
TLINDEN
7b3005e790 added context to pcp_readpass(), rm libpcp/getpass.c 2015-07-30 11:47:03 +02:00
TLINDEN
deeb15e851 add pass idea 2015-07-29 17:47:55 +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
TLINDEN
6e8dadbad9 updated 2015-07-09 18:37:01 +02:00
TLINDEN
cc47e63731 updated 2015-07-08 23:52:08 +02:00
TLINDEN
08a12ff400 updated 2015-07-08 01:21:33 +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
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
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
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
dc457b6eb9 updated 2014-05-06 11:51:54 +02:00
git@daemon.de
fd739b864d + 2014-05-05 12:47:18 +02:00
TLINDEN
d1c87d1001 - 2014-03-17 19:16:41 +01:00
TLINDEN
b3851f62e8 revert mode changes made by windows devel system (sic) 2014-03-17 17:20:29 +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
080456219a removed unused vars 2014-03-14 19:50:12 +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
TLINDEN
b640fe6743 fixed keysig saving (forgot the id), enhancements on cmdline 2014-03-02 18:05:45 +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
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
c11ce76d21 fixed ps_eof(): consider cache. fixed ps_read_cached() which didn't work under certain circumstances (blocksize < readbytes and such) 2014-02-26 15:32:46 +01:00
TLINDEN
0069d6ea29 yet another pcpstream problem noted 2014-02-25 19:52:59 +01:00
TLINDEN
271c6259c2 added -O2 2014-02-25 19:30:07 +01:00
git@daemon.de
ac65cb0313 - 2014-02-25 12:26:54 +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
TLINDEN
99f611ab80 fixed tilde z85 headers in signature stuff as well 2014-02-24 19:52:57 +01:00
git@daemon.de
51858aeda2 changed z85 header and comment syntax and parser 2014-02-24 16:59:04 +01:00
TLINDEN
10d3b1aa90 brought to current 2014-02-21 20:38:01 +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
git@daemon.de
1afb5cc3d7 fixed annoying error in _buffer_is_binary() which returned false sometimes even when the input were in fact binary. This fixes those 2 annoying unittests which failed from time to time. 2014-02-17 17:03:55 +01:00
TLINDEN
3f03f97992 catched up api changes, fixed dysfunctional c++ signature api, enhanced c++ Buf class. 2014-02-16 15:29:19 +01:00
TLINDEN
1342fa2b45 fixes and stuff 2014-02-15 17:39:51 +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
347f155341 catch up with api and system changes in libpcp. added c++ buffer class as well 2014-02-14 16:40:09 +01:00
TLINDEN
ec192131af done a lot 2014-02-13 20:22:17 +01:00
git@daemon.de
0a8206b3b0 update to new formats 2014-02-13 15:33:51 +01:00
TLINDEN
75cdbbe835 continue to implement 4880 exports and stuff... 2014-02-13 00:06:55 +01:00
git@daemon.de
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. 2014-02-12 16:47:24 +01:00