234 Commits

Author SHA1 Message Date
Steffen Jaeckel
342a10cc14 make PK_MAX_RETRIES a config option 2017-09-21 18:37:37 +02:00
Steffen Jaeckel
4f7747eaec DSA not DH 2017-09-20 15:06:40 +02:00
Karel Miko
155e29dd68 dsa_verify_hash must set stat=0 on any error 2017-09-20 11:58:32 +02:00
Karel Miko
5e71849942 properly exit dsa_int_validate_pqg 2017-09-14 20:07:32 +02:00
Karel Miko
bb6a7e1c6c if dsa_int_validate_* fails return consistently CRYPT_INVALID_PACKET 2017-09-14 18:53:09 +02:00
Karel Miko
a990a8252e mp_clear_multi - reverse the order 2017-09-14 18:51:02 +02:00
Karel Miko
d91d59421f fix de-referencing stat before checking for NULL 2017-09-14 18:48:04 +02:00
Karel Miko
444d9f3fb7 do dsa_int_validate_* in dsa_import 2017-09-14 17:38:12 +02:00
Karel Miko
fd94e9540f move qord trest to dsa_int_validate_pqg 2017-09-14 17:37:39 +02:00
Karel Miko
9765befd6b do dsa_int_validate_pqg in dsa_set_pqg_dsaparam 2017-09-14 17:29:59 +02:00
Karel Miko
45b6b947da dsa_int_validate_primes & LTC_MILLER_RABIN_REPS 2017-09-14 17:21:48 +02:00
Karel Miko
c806ea17f9 fix dsa_int_validate_xy 2017-09-14 17:21:48 +02:00
Karel Miko
1ea4fecc81 FIPS 186-4 DSA validity tests 2017-09-14 17:21:48 +02:00
Karel Miko
5fb4c9f89b another approach for dsa_int_validate_* 2017-09-14 17:21:48 +02:00
Karel Miko
aa5b9dafc4 fix dsa_int_validate_key related compiler warnings 2017-09-14 17:21:48 +02:00
Steffen Jaeckel
1625ce4001 re-factor & re-name internal dsa key validation 2017-09-14 17:21:48 +02:00
Karel Miko
053ba6d600 introducing dsa_verify_key_ex 2017-09-14 17:21:48 +02:00
Karel Miko
2505e3b609 add basic validity tests to dsa_set 2017-09-14 17:21:48 +02:00
Karel Miko
c927e4315a dsa_verify_hash: fix wycheproof - appending unused 0's 2017-09-02 14:16:52 +02:00
Karel Miko
7e4bd971de dsa_verify_hash: properly handle (=reject) negative r, s 2017-09-02 14:16:52 +02:00
Karel Miko
59857ba5e0 fix DSA dependency on RSA #285 2017-09-01 18:24:15 +02:00
Karel Miko
9ea6247da1 Revert "add basic validity tests to dsa_set"
This reverts commit 9003e87e5aaee40e5e95277172e3c8079663a082.
2017-08-30 00:03:04 +02:00
Karel Miko
9003e87e5a add basic validity tests to dsa_set 2017-08-30 00:01:00 +02:00
Steffen Jaeckel
43e6860925 fix RSA - wycheproof "wrong length" 2017-08-29 17:26:14 +02:00
Karel Miko
fe9af6cfbd RSA: handle wycheproof test vectors - Legacy:missing NULL 2017-08-29 17:26:14 +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
Steffen Jaeckel
7a59f71af8 fix warning
warning: 'ltc_asn1_type {aka enum ltc_asn1_type_}' is promoted to 'int' when passed through '...'
        type = va_arg(args, ltc_asn1_type);
note: (so you should pass 'int' not 'ltc_asn1_type {aka enum ltc_asn1_type_}' to 'va_arg')
note: if this code is reached, the program will abort
2017-08-07 16:04:57 +02:00
Steffen Jaeckel
129bc7175f beautify dh & rsa 2017-07-21 10:16:19 +02:00
Steffen Jaeckel
1819a02d5a update comments
[skip ci]
2017-07-11 10:32:53 +02:00
Karel Miko
e20e204b8c dh_set_key + dsa_set_key API change described in #248 2017-07-11 00:13:26 +02:00
Karel Miko
2aa42f002f fix: chmod -x 2017-07-09 16:22:28 +02:00
Steffen Jaeckel
68bf547f9c use rsa_free() on error in rsa_make_key() 2017-07-09 16:02:11 +02:00
Steffen Jaeckel
ac6fb72ef1 fix some doxygen headers 2017-07-05 14:27:05 +02:00
Karel Miko
4bc1489584 small ASN.1 changes extracted from ECC stuff 2017-07-05 11:34:27 +02:00
Steffen Jaeckel
4221c44fbc rename rand_bn_range() to rand_bn_upto() 2017-07-05 10:03:56 +02:00
Steffen Jaeckel
a6aef23438 dh_make_key() is now dh_generate_key() 2017-07-04 10:30:39 +02:00
Steffen Jaeckel
e647f9a0e4 not good to check that prng is non-NULL
e.g. sprng() lives w/o context
2017-07-04 10:25:38 +02:00
Steffen Jaeckel
a0f2abc5b5 re-format 2017-07-04 10:25:38 +02:00
Steffen Jaeckel
a80abb1222 put dh_set_pg_dhparam() in own c file 2017-07-04 10:25:38 +02:00
Steffen Jaeckel
5640f8afc7 put dsa_set_pqg_dsaparam() in own c file 2017-07-04 10:25:38 +02:00
Steffen Jaeckel
3c2e0d6686 dsa_make_key_ex() is now dsa_generate_key() 2017-07-04 10:25:38 +02:00
Steffen Jaeckel
dbeaefd65b remove LTC_{DH,DSA}_KEY_INITIALIZER 2017-07-04 10:25:38 +02:00
Steffen Jaeckel
d1ecd82a42 use rand_bn_range() where possible 2017-06-28 20:50:21 +02:00
Steffen Jaeckel
bdfecc5f3c more doc updates 2017-06-28 16:45:29 +02:00
Steffen Jaeckel
d64880eeb1 add dsa_set_pqg_dsaparam() 2017-06-28 16:07:54 +02:00
Steffen Jaeckel
35e0c5fc71 clean-up a bit around DSA
* comments
* dsa_test()
* order of alloc/free of key parts
2017-06-28 16:07:32 +02:00
Steffen Jaeckel
cfff656e25 re-factor dsa_make_key() etc. 2017-06-28 14:40:30 +02:00
Steffen Jaeckel
24946d08b7 use mp_cleanup_multi() 2017-06-28 14:40:30 +02:00
Steffen Jaeckel
f2f113880b also rename file 2017-06-27 22:10:07 +02:00