Francois Perrad
bd767a3116
fix condition
2018-10-07 14:52:36 +02:00
Francois Perrad
46bb470aaa
remove useless initialization
2018-10-07 14:52:16 +02:00
Steffen Jaeckel
a55e7caa48
fix missing handling of optional keyLength in PBKDF2-params
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
7af942a66b
use pkcs8_decode_flexi() in rsa_import_pkcs8()
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
52c5473a13
use pkcs8_decode_flexi() in ecc_import_pkcs8()
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
bc673c2853
implement pkcs8_decode_flexi()
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
a2ec37b93c
refactor PBES into separate modules
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
0af0033390
add empty der_decode_pkcs8_flexi.c
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
362e0c9284
add pk_oid_cmp_with_ulong()
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
3d6a49a64b
rename pk_oid_asn1.c to pk_oid_cmp.c
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
97d1c17c8d
add empty pbes files
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
6bdfa7c428
add _der_flexi_sequence_cmp()
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
c56053870a
pkcs#8 support for aes and reduced sha512
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
36d603e3d2
re-factor ecc_import_pkcs8()
2018-10-06 23:04:51 +02:00
Karel Miko
3c9d2ebc5e
clang-tidy fix misc-suspicious-string-compare
2018-10-06 23:04:51 +02:00
Karel Miko
e29fecde12
use ecc_find_curve + ecc_set_curve
2018-10-06 23:04:51 +02:00
Karel Miko
8207a6a1c4
use pkcs12_kdf + pkcs12_utf8_to_utf16
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
c4642bacf0
mark fall-through in switch-case to calm linter
2018-10-06 23:04:51 +02:00
Steffen Jaeckel
93e758a82e
introduce LTC_ASN1_IS_TYPE()
2018-10-06 23:04:51 +02:00
Karel Miko
bf04bf18a4
add ecc_import_pkcs8
2018-10-06 23:04:51 +02:00
Karel Miko
59bc3b5885
make ecc_verify_hash_ex less strict (as it was before ecc_recover_key addition)
2018-10-05 07:44:15 +02:00
Karel Miko
ef20f2e656
remove unused macros
2018-10-04 23:29:12 +02:00
Karel Miko
bb5ea12d0b
move LTC_BYTE macro from tomcrypt_macros.h to tomcrypt_private.h
2018-10-04 17:21:58 +02:00
Karel Miko
1bbbc60d06
rename macro byte >> LTC_BYTE - related to #439
2018-10-04 17:20:47 +02:00
Russ Williams
88d9b6db26
Make ECC signature format explicit
...
Optionally return recovery ID from ecc_sign_hash()
Update documentation
Update tests for ECC recovery
Fix (v,r,s) signature format, regenerate recovery test
Fix over-freeing of private key
Code review fixes to docs
Rename LTC_ECCSIG_BLOCKCHAIN to LTC_ECCSIG_ETH to reflect original definition
Rename to LTC_ECCSIG_ETH27 to make clear it's using the Ethereum +27 convention
Code review changes - calculate recovery ID only if needed, type safety on signature format enum
Use enum for sigformat in docs, and add explanatory note for recid<0
Range checks on v, check RFC7518 signatures' length based on size of key. Fix for when order>prime.
Limit LET_ECCSIG_ETH27 to secp256k1 curve only
2018-09-29 21:07:41 +01:00
Russ Williams
76190521e3
Implementation of ecc_recover_key to obtain public key from hash+signature
...
Workaround for TFM missing sqrtmod_prime
Fix unused variable warnings with USE_TFM, make TomsFastMath a runtime check
Disable ecc_recover_key if no ecc_mul2add available
Wrap ecc_recover_key and its test in #ifdef LTC_ECC_SHAMIR
Fix unused variables when built without LTC_ECC_SHAMIR
Code review tweaks
Code review tweaks - remove sigformat, tidy up (de)allocation
Code review tweaks
2018-09-23 09:03:30 +01:00
buggywhip
a2b343b2d0
streams-add-single-call-crypt-functions
...
fix mixed declarations and code
add _memory chacha_ivctr32() test
2018-09-10 02:21:09 -07:00
Francois Perrad
9d9718e56b
remove useless initialization
2018-09-08 11:49:36 +02:00
Francois Perrad
698790fdeb
explicit condition
2018-09-07 17:06:09 +02:00
Steffen Jaeckel
fb7b8799cd
rename enum public_key_algorithms
to something more generic
2018-09-07 11:58:54 +02:00
Steffen Jaeckel
4cf2e80346
remove oid_st
2018-09-07 11:58:54 +02:00
Steffen Jaeckel
645460a5d5
add pk_oid_cmp_with_asn1()
2018-09-07 11:58:54 +02:00
Steffen Jaeckel
e318f6f1e3
re-work pk_oid_str functions a bit
2018-09-07 11:58:54 +02:00
Steffen Jaeckel
caff4cea40
change pk_get_oid() to return a string
2018-09-07 11:58:54 +02:00
Steffen Jaeckel
fdc97f8648
move oid functions to own folder
2018-09-07 11:58:54 +02:00
Steffen Jaeckel
2e9c80cbc1
fix der_length_object_identifier()
...
... there are only three root nodes
As of X6.90 Ch. 8.19.4: "NOTE – This packing of the first two
object identifier components recognizes that only three values
are allocated from the root node..."
2018-09-07 08:24:25 +02:00
Steffen Jaeckel
4ffdb915f0
fix der_decode_object_identifier()
2018-09-07 08:24:25 +02:00
buggywhip
380d1d2452
streams-make_state_names_consistent
2018-07-09 17:31:24 -07:00
Steffen Jaeckel
53fc5694c9
re-work pkcs12 a bit
2018-07-06 18:26:43 +02:00
Karel Miko
a96997dd29
add pkcs12_utf8_to_utf16()
2018-07-06 18:26:43 +02:00
Karel Miko
b3f483a204
add pkcs12_kdf()
2018-07-06 18:26:43 +02:00
Karel Miko
a3dab04074
fix clang-tidy warning: google-readability-braces-around-statements
2018-07-06 13:58:15 +02:00
Karel Miko
4bec98f88c
rename ecc_get_curve to ecc_find_curve
2018-07-04 10:43:15 +02:00
Karel Miko
611ca6bf14
rename ecc_set_dp (+related) to ecc_set_curve
2018-07-04 10:41:10 +02:00
Karel Miko
22b764ec85
fix clang-tidy warning: readability-else-after-return
2018-07-03 22:42:15 +02:00
Karel Miko
ae6aa3dd86
fix clang-tidy warning: readability-non-const-parameter
2018-07-03 22:37:05 +02:00
Karel Miko
12c3091077
fix clang-tidy warning: readability-inconsistent-declaration-parameter-name - issue #376
2018-07-03 22:33:48 +02:00
Karel Miko
fc056a645d
fix "make test" built with no math provider or multiple providers
2018-07-03 00:12:08 +02:00
Steffen Jaeckel
3fb0eea01b
show in SCRYPT etc. that we're on develop
2018-07-02 23:25:20 +02:00
Steffen Jaeckel
215ec5f69d
Merge tag 'v1.18.2' into develop
...
libtomcrypt v1.18.2
2018-07-02 23:23:47 +02:00