1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-29 18:33:10 +00:00
Commit Graph

247 Commits

Author SHA1 Message Date
Mirek Kratochvil
5b2bc564d1 iohelpers: forgotten styleup 2015-12-05 18:55:09 +01:00
Mirek Kratochvil
dabb8fe1a1 prevent mangling user output by correct escapes
+ some code cleaning
2015-12-05 18:34:50 +01:00
Mirek Kratochvil
1d2197ca02 symkey: change default key size to 512 bits 2015-12-05 18:31:36 +01:00
Mirek Kratochvil
bad79f05a0 mce_qcmdpc: code cleaniness 2015-11-17 17:07:05 +01:00
Mirek Kratochvil
aaa8c9ae9d cleaned-up version bump 2015-11-15 20:43:30 +01:00
Mirek Kratochvil
de4ee8aa39 algos_enc: fixup the padding for non-byte-aligned keys 2015-11-15 20:38:30 +01:00
Mirek Kratochvil
78a00ae3ce mce_qcmdpc: implement faster decoding
This replaces the periodic recalculation of error correlations and the syndrome
by in-place modification. Bit flip is therefore a bit slower, but overall
decoding of the 256-bit secure variant fits in 200ms, and 128-bit variant
decodes under 20ms.

There still could be some (blatantly nondeterministic) method to do this using
FFT, research underway.
2015-11-15 20:35:03 +01:00
Mirek Kratochvil
f06372d874 mce_qcmdpc: fixup comments 2015-11-15 11:06:34 +01:00
Mirek Kratochvil
3f625e3690 implement circulant multiplication by FFT +tooling
The thing in now used in mce_qcmdpc where possible.
Also, some parameter tuning.
2015-11-15 11:05:44 +01:00
Mirek Kratochvil
23cd287372 documentation updates 2015-11-07 23:52:16 +01:00
Mirek Kratochvil
a7ffdbdee0 bvector: use faster to/from string/byte conversion 2015-11-07 23:17:09 +01:00
Mirek Kratochvil
bbca109f8b mce_qcmdpc: remove debug output 2015-11-07 19:53:42 +01:00
Mirek Kratochvil
8b4e0ba4ea massive code cleanup and removal of dead code 2015-11-07 19:38:08 +01:00
Mirek Kratochvil
17f77e16a4 mce_qcmdpc: QC-MDPC McEliece 2015-11-07 19:37:30 +01:00
Mirek Kratochvil
878d326859 bvector: faster implementation with 64bit ints 2015-11-07 19:33:47 +01:00
Mirek Kratochvil
19d59f9ec1 bulk-apply new code styling rules 2015-10-31 22:58:17 +01:00
Mirek Kratochvil
a2c1c3992d mce_qd: add a security warning 2015-10-31 10:00:58 +01:00
Mirek Kratochvil
67192f621e main: update the year 2015-10-30 21:02:03 +01:00
Mirek Kratochvil
246cda84a7 prevent mangling user output by crafted keyring 2014-08-16 15:27:36 +02:00
Mirek Kratochvil
68909b74ad symkey: simplify padding 2014-04-19 22:09:44 +02:00
Mirek Kratochvil
07012cb297 symkey: use hmac to fix possible collision attack 2014-04-19 21:59:15 +02:00
Mirek Kratochvil
8d43c29988 update changelog and others 2014-04-09 16:34:50 +02:00
Mirek Kratochvil
760bcdc7f7 new encryption algos with xsynd/chacha20 2014-04-09 16:14:31 +02:00
Mirek Kratochvil
85b1c69b5c algos_sig: macro-squash 2014-04-09 16:01:37 +02:00
Mirek Kratochvil
eae6fe5675 algos_sig: use chacha instead of rc4 for padding 2014-04-09 15:51:58 +02:00
Mirek Kratochvil
5c739804fd algos_enc: macro-squash algorighm definitions 2014-04-09 15:29:34 +02:00
Mirek Kratochvil
c85a3f72a5 hash: correctly accept HAVE_CRYPTOPP 2014-04-06 14:53:47 +02:00
Mirek Kratochvil
8e0597824a symmetric encryption working 2014-04-06 13:46:04 +02:00
Mirek Kratochvil
b30009b910 chacha: fix 2 funny oneliners 2014-04-06 13:37:26 +02:00
Mirek Kratochvil
9c4287c636 named collections for hashes and stream ciphers
also, with the funny factoryof<> and instanceof<> primitives that kindof
solve the memory trouble.
2014-04-05 23:45:01 +02:00
Mirek Kratochvil
654b2f58ef serialization: use macros for hard work 2014-04-05 14:54:54 +02:00
Mirek Kratochvil
eb47cce9ad symkey: primitive for symmetric encryption 2014-04-05 14:33:25 +02:00
Mirek Kratochvil
c5cf430ab5 fmtseq: remove internal rc4 usage, use chacha20
Result is incompatible with previous version. Those just shouldn't be
used anymore.
2014-04-05 14:04:08 +02:00
Mirek Kratochvil
37d9c9a98e algos_enc: make timing&sidechannel attacks harder
There was possible timing information leaking from failed decryptions,
new code makes the whole thing fail in almost the same time in all
cases.
2014-04-05 13:04:29 +02:00
Mirek Kratochvil
fd489ae69f generator: remove rc4 usage, some cleaning 2014-04-05 11:36:50 +02:00
Mirek Kratochvil
3659cc837e xsynd: new stream cipher
This one is especially cool. It is code based (yeyeye matches the
project name! :D ), it is provably secure (not like the others!) AAAND
is still quite fast (not fast as chacha though).
2014-04-02 10:49:55 +02:00
Mirek Kratochvil
562188b52d chacha: test vector compliance check 2014-04-01 11:41:21 +02:00
Mirek Kratochvil
39202f8dfb chacha: forgotten public 2014-04-01 11:04:49 +02:00
Mirek Kratochvil
d44ae939d5 chacha: fix discarding
although it's not needed here.
2014-03-30 19:15:43 +02:00
Mirek Kratochvil
7d1d95784a chacha: new ChaCha20 stream cipher 2014-03-29 18:10:58 +01:00
Mirek Kratochvil
6a8029e626 cosmetic fixes 2014-03-28 08:33:44 +01:00
Mirek Kratochvil
e687629323 sc: stream cipher abstraction applied to arcfour
A minor bug was discovered in padding of short message signatures. If is
silently fixed, causing some (very minor) incompatibility of signatures
with previous versions.
2014-03-19 09:30:59 +01:00
Mirek Kratochvil
a711c72953 hashfile: finished streaming support 2014-03-10 15:31:10 +01:00
Mirek Kratochvil
61802a9113 hash: cryptopp templatized, added hash_procs 2014-03-10 14:54:36 +01:00
Mirek Kratochvil
c70ed00230 hash: hash_proc, cubehashproc 2014-03-10 13:57:25 +01:00
Mirek Kratochvil
10777a8174 hashfile: integrate into actions 2014-03-10 11:20:43 +01:00
Mirek Kratochvil
6f50dab322 main: hashfile frontend 2014-03-07 08:44:23 +01:00
Mirek Kratochvil
6b220b7064 hashfile: simple implementation
to be fixed to support stream reading
2014-03-07 08:29:41 +01:00
Mirek Kratochvil
ad96ee03d2 iohelpers: templatize read_all_input 2014-03-07 08:27:23 +01:00
Mirek Kratochvil
0cdd83dbc4 mce_qd: fix unused variable warn 2014-02-26 12:51:44 +01:00