Steffen Jaeckel
ab02d2e450
fix rsa_import() of MAX_RSA_SIZE'ed keys
...
The ASN1 encoded RSA key contains two MPI's therefore MAX_RSA_SIZE / 8
isn't enough.
2017-10-01 22:56:47 +02:00
Steffen Jaeckel
0500aaec45
add tests for MAX_RSA_SIZE sized openssl-standard RSA keys
2017-10-01 22:56:47 +02:00
Steffen Jaeckel
efa089e211
fixup #290
2017-10-01 22:56:47 +02:00
Steffen Jaeckel
15eab9702b
don't over-allocate that much in der_decode_subject_public_key_info()
2017-10-01 22:56:46 +02:00
Steffen Jaeckel
0b04279890
fix bit-length check in der_decode_raw_bit_string()
2017-10-01 22:56:46 +02:00
Steffen Jaeckel
062fc3ffe3
print info when doing a debug build
2017-10-01 22:56:46 +02:00
Rob Swindell
6da2211ee9
Update rsa_import.c
...
Bug-fix: MAX_RSA_SIZE is the maximum RSA key size in *bits* (as commented in tomcrypt_custom.h), so the proper conversion to bytes (as the argument value to XCALLOC) would be to divide by 8 (bits per byte), not multiply by 8. This excessive allocation (32 Kbytes instead of 512 bytes) is readily apparent in memory-constrained environments.
2017-10-01 22:56:46 +02:00
karel-m
c2f0675ede
Merge pull request #304 from libtom/pr/fix-303
...
missing dsa_free
2017-10-01 17:24:08 +02:00
Karel Miko
98536fa5bf
add missing dsa_free to _dsa_wycheproof_test - fixes #303
2017-10-01 15:40:19 +02:00
Steffen Jaeckel
f4802ef40a
add ltc_math_descriptor to crypt_sizes
2017-09-30 13:01:08 +02:00
Steffen Jaeckel
9ff889b330
Update makefiles
2017-09-27 21:37:23 +02:00
Steffen Jaeckel
07c5e6b0a4
bump version
2017-09-27 21:37:21 +02:00
Steffen Jaeckel
5f89a5ce2c
Merge pull request #298 from libtom/strict_der_decoding
...
initialize 'flags' etc. to invalid values before trying to decode
2017-09-27 21:34:30 +02:00
Steffen Jaeckel
4a8bfc0a21
introduce CRYPT_INPUT_TOO_LONG
2017-09-27 21:34:11 +02:00
Steffen Jaeckel
13cb43ad4c
initialize 'flags' etc. to invalid values before trying to decode
2017-09-27 21:34:11 +02:00
Steffen Jaeckel
8935cd9a8a
Merge pull request #299 from libtom/pr/libtool-cygwin
...
libtool + cygwin
2017-09-27 21:33:29 +02:00
Karel Miko
9c2c9f8af4
libtool on cygwin needs -no-undefined
2017-09-27 21:25:19 +02:00
Steffen Jaeckel
5049463774
bump the libtool version
...
yeah, helper.pl doesn't update it anymore automagically...
we'll probably find a new way to do that in the future...
or we keep on updating it manually...
This fixes #300
2017-09-27 21:19:33 +02:00
Steffen Jaeckel
f868a16a44
Update makefiles
2017-09-25 16:56:59 +02:00
Steffen Jaeckel
20c6bf812b
bump version
2017-09-25 16:56:57 +02:00
Karel Miko
83e7f4a1c7
keep dh_key.x instead of free'ing it
...
the approach before probably saves some bytes on the heap, but it's
inconsistent in regards to what we normally do
2017-09-25 15:35:29 +02:00
Steffen Jaeckel
f7c0b25146
add missing math constants
2017-09-23 11:42:05 +02:00
Steffen Jaeckel
91a10318f1
Merge pull request #296 from libtom/cleanup/3
...
General clean-up 3
2017-09-21 20:46:41 +02:00
Karel Miko
ea43d9a1d2
Fix openssl-enc compilation
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
8f7986bbb2
fix coverage_more.sh after updating hashsum
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
5bb63f1bca
hashsum: improve help
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
eb75c894db
hashsum: cleanup at exit
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
312247fa0b
better comments for PKCS#5
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
da4f854329
make sure chacha_crypt() can only be called after setting the IV
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
342a10cc14
make PK_MAX_RETRIES a config option
2017-09-21 18:37:37 +02:00
Steffen Jaeckel
a278f72659
skip comment lines when checking hashes
...
[skip ci]
2017-09-20 17:43:07 +02:00
Steffen Jaeckel
9a83397376
catch case where we could BOF should_buffer[]
...
[skip ci]
2017-09-20 17:29:05 +02:00
Steffen Jaeckel
b6213309ca
Merge pull request #197 from libtom/update/doc
...
Update documentation
2017-09-20 15:14:54 +02:00
Steffen Jaeckel
f8d132ea03
update changes
...
[skip ci]
2017-09-20 15:14:10 +02:00
Steffen Jaeckel
7cc9aad5cc
remove TODO
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
9fb08af23d
fix location of some of the tables
...
this fixes the last open issue of #54
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
2d3a921de4
align code
...
[skip-ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
4f7747eaec
DSA not DH
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
c210f24853
IV is short for 'initialization vector'
2017-09-20 15:06:40 +02:00
Karel Miko
fff9fee129
DSA new functions - doc
2017-09-20 15:06:40 +02:00
Karel Miko
f3f839ec6c
BLAKE2s + BLAKE2b MAC doc
2017-09-20 15:06:40 +02:00
Karel Miko
50e52d0b4c
poly1305 doc
2017-09-20 15:06:40 +02:00
Karel Miko
11827feef3
ChaCha20-Poly1305 doc
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
35d920a688
moar doc
...
[skip ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
8b3af12d70
add radix_to_bin() docs
...
[skip ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
78e9601eb6
review "Configuring and Building the Library"
...
[skip ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
13b484f8a5
moar doc
...
[skip ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
0742a99fb5
update README
...
[skip ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
fc65352261
moar doc
...
[skip ci]
2017-09-20 15:06:40 +02:00
Steffen Jaeckel
dd01232bcb
review stream ciphers
...
[skip ci]
2017-09-20 15:06:40 +02:00