Commit Graph

13 Commits

Author SHA1 Message Date
git@daemon.de
6ce39a21d8 fixed compile error (unused var) 2015-07-07 09:46:23 +02:00
git@daemon.de
e6a5c51d8a C++ API changes+fixes:
- context is now a pointer to make sure there's only one all the time
- fixed a couple of double free's
- some minor bug fixes
2014-08-01 14:46:38 +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
729c137e3c context fixes 2014-05-06 11:49:31 +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
8b955b5e92 added -Wextra -Werror and fixed everything it had to mecker about 2014-02-25 18:05:32 +01:00
git@daemon.de
51858aeda2 changed z85 header and comment syntax and parser 2014-02-24 16:59:04 +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
89b83dda12 fixed type typo in operator= of Key and PubKey. 2013-12-19 12:30:26 +01:00
TLINDEN
fa955d8170 re-organized c++ header(s), added/fixed encryption support, streamlined the api 2013-12-02 22:53:03 +01:00
TLINDEN
aa140ed1c8 c++ binding now supports vaults and encryption, added test program 2013-12-01 16:16:53 +01:00
TLINDEN
6dc134c005 fixed compilation errors 2013-11-29 20:02:27 +01:00
TLINDEN
33844f6ceb started with c++ bindings (not working yet) 2013-11-28 19:36:50 +01:00