Steffen Jaeckel
13d91e7c8b
Merge pull request #327 from libtom/fix/ccm_segfault
...
Fix ccm_memory() cleaning user-supplied key
(cherry picked from commit 85ac227862eceb3b22c0852a7dc363d46c2dd532)
2017-12-05 09:23:06 +01:00
Steffen Jaeckel
368dc60ff3
Merge pull request #326 from libtom/pr/ccm_process
...
fixes #323 ccm_process fails to process input buffer longer than 256
(cherry picked from commit 7c4c61d7ef3cbf8ff8ebaad9976224364a688b3c)
2017-12-05 09:21:52 +01:00
Steffen Jaeckel
521d0737ea
fix typo
...
(cherry picked from commit 442bb90a51621deb38a5f9dce890db0f3b312e49)
2017-12-05 09:17:30 +01:00
Steffen Jaeckel
c210f24853
IV is short for 'initialization vector'
2017-09-20 15:06:40 +02:00
Karel Miko
105abdd8cd
GCM: 0 size IV is not valid #273
2017-08-28 16:10:30 +02:00
Karel Miko
de8a53a2e5
ocb3_test cosmetics
...
[skip ci]
2017-08-13 18:15:44 +02:00
Karel Miko
2a52c68f2e
fix lint issues from #199
2017-08-13 14:54:39 +02:00
Karel Miko
0286b36ad6
fix doxygen warnings (as mentioned in #228 )
...
[skip ci]
2017-08-09 09:44:12 +02:00
Karel Miko
f647baa778
OCBv3: ocb3_init taglen check
2017-08-07 18:24:59 +02:00
Karel Miko
af63d0a55f
OCBv3: improved handling of taglen in ocb3_done
2017-08-07 18:24:59 +02:00
Steffen Jaeckel
9f020b17df
limit malloc'ed data in eax_decrypt_verify_memory()
2017-08-07 16:04:36 +02:00
Karel Miko
6ac1c5fa34
OCBv3: fix demos/timing failures
2017-08-07 07:48:21 +02:00
Steffen Jaeckel
3ecd18763b
OCBv3: better taglen limitation
2017-08-03 13:40:57 +02:00
Steffen Jaeckel
3b4d39ea45
OCBv3: improve a bit when ARGCHK'ing pointers
...
* it didn't really make sense to check that the _in_ pointer is NULL
* instead we should check that _in_ and _out_ are not NULL when there's
something to process
2017-08-03 13:40:26 +02:00
Steffen Jaeckel
868c5a82c3
OCBv3: fix handling of empty plaintext
2017-08-03 13:19:12 +02:00
Steffen Jaeckel
0c2ff4a1b0
OCBv3: small review
...
* better LTC_ARGCHK()
* move unnecessary functions from API to be static
* limit malloc'ed data in ocb3_decrypt_verify_memory()
2017-08-02 18:55:34 +02:00
Steffen Jaeckel
d77cf0e248
OCBv3: implement RFC7253 compliance
...
This fixes #256
2017-08-02 17:45:59 +02:00
Steffen Jaeckel
1aaa5abb33
ocb3: check the length of the nonce
2017-08-02 14:41:46 +02:00
Steffen Jaeckel
b2448c593a
ocb3: properly handle empty AAD
...
* allow passing "no additional data" to ocb3_decrypt_verify_memory() and
ocb3_encrypt_authenticate_memory()
* ensure that the caller didn't want to add AAD
2017-08-01 14:44:37 +02:00
Steffen Jaeckel
24e69b2956
more printf() clean-up
...
* remove last occurences in non-test code
* minimize in tests
2017-07-11 15:29:45 +02:00
Karel Miko
0792e3701e
GCM allow skipping gcm_add_aad and gcm_process
2017-07-10 22:35:42 +02:00
Steffen Jaeckel
1bf42ea99a
update some of the static functions
2017-06-22 14:21:14 +02:00
Steffen Jaeckel
27b3ffc627
use compare_testvector() instead of XMEMCMP() in tests
2017-06-22 14:21:14 +02:00
Steffen Jaeckel
05e28d6cfa
fix potential timing attacks in rsa, eax, ocb and ocb3
2017-06-22 14:21:14 +02:00
Steffen Jaeckel
4cd1355b8f
more clean-up of headers/footers
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
fe19dad623
replace SVN tags
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
4dc211e19d
clean-up headers
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
4e971a8518
don't use print_hex() from library
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
8c1d55f4c0
fix error when compiling w/ LTC_CLEAN_STACK but w/o LTC_FAST
2017-06-08 22:20:45 +02:00
Karel Miko
43e46a2efc
fix clang static analyzer warnings/errors - see #217
2017-05-11 20:37:06 +02:00
Karel Miko
e2cf11da25
fix windows warnings - #212 and #213
2017-05-11 17:42:43 +02:00
Karel Miko
04262d3aec
fix: local struct member 'poly_div' not referenced
2017-05-09 21:31:12 +02:00
Karel Miko
f6ea738fee
fix: Loss of sign (initialization) (int to unsigned long long)
2017-05-09 21:30:44 +02:00
Karel Miko
87142382da
lint fixes discussed in #199
2017-04-29 19:59:03 +02:00
Karel Miko
9c972c833d
fix chacha20poly1305_test
2017-04-29 13:30:19 +02:00
Karel Miko
eb209aa2f9
more error checking in *_test
2017-04-28 19:24:58 +02:00
Karel Miko
1732ed8ce8
increase coverage
2017-04-28 19:24:58 +02:00
Francois Perrad
9941648125
remove suspicious ;
2017-04-07 00:17:43 +02:00
Karel Miko
3a05f0331d
chachapoly_state > chacha20poly1305_state
2017-04-02 18:13:45 +02:00
Karel Miko
39028bbeed
more tests in chacha20poly1305_test
2017-04-02 18:13:45 +02:00
Karel Miko
31b52a354d
padlen in chacha20poly1305_decrypt
2017-04-02 18:13:45 +02:00
Karel Miko
c8cb714e08
added chacha_done
2017-04-02 18:13:45 +02:00
Karel Miko
ff6abc776c
RFC 7539 - ChaCha20 and Poly1305 + chacha based PRNG
2017-04-02 18:13:45 +02:00
Steffen Jaeckel
8af93d1d0d
Remove ccm_memory_ex()
2017-03-28 22:57:22 +02:00
Karel Miko
39425a94c5
improved source checks
2017-03-15 23:13:46 +01:00
Karel Miko
54a26525dc
avoid C++ style comments
2017-03-15 15:22:06 +01:00
Karel Miko
52eaabefa9
msvc 2008 does not like { } initialization
2017-03-06 19:53:04 +01:00
Matt Kelly
e187f4cbf4
Fix all warnings from -Wcast-align
2017-02-26 10:12:16 -05:00
Francois Perrad
79d6e61aca
use the variable 'err'
2017-02-24 19:00:32 +01:00
Francois Perrad
58353f51e2
remove trailing spaces
2017-02-24 16:29:54 +01:00