Steffen Jaeckel
aac1e592b4
Update makefiles
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
4abd84b7c3
Update makefiles
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
498a534b9c
Update makefiles
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
7529e02b96
Update makefiles
2018-10-06 23:04:51 +02:00
karel-m
223ece7f6d
Merge pull request #443 from libtom/pr/ecc-verify-was-too-strict
...
Less strict ecc_verify_hash_ex (as it was before ecc_recover_key)
2018-10-05 12:32:49 +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-m
4d6f973b2d
Merge pull request #444 from libtom/pr/fix-unused-macros
...
Remove unused macros
2018-10-05 07:05:29 +02:00
Karel Miko
ef20f2e656
remove unused macros
2018-10-04 23:29:12 +02:00
karel-m
0157bef943
Merge pull request #442 from libtom/pr/ltc-byte
...
Rename macro 'byte' to 'LTC_BYTE'
2018-10-04 19:52:34 +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
Steffen Jaeckel
c5e4679b7a
Merge pull request #436 from rmw42/feature/ecrecover
...
Implement ecc_recover_key to recover public key from hash+signature
2018-09-30 16:28:22 +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
57781c7acd
Update makefiles
2018-09-23 09:03:30 +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
Larry Bugbee
b44155fdb0
Merge pull request #431 from libtom/streams-add-single-call-crypt-functions
...
Streams - add single call crypt functions
2018-09-21 12:03:36 -07: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
buggywhip
305a589d64
update makefiles
2018-09-10 02:21:09 -07:00
Steffen Jaeckel
e77ad636e7
Merge pull request #435 from fperrad/20180907_lint
...
some lintings
2018-09-08 17:00:54 +02: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
e5f56d4617
Merge pull request #429 from libtom/rework/oid
...
Remove oid_st
2018-09-07 16:49:25 +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
af23fdd1c2
Update makefiles
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
1a90da844c
only print der flexi-test on higher debug level
...
it's smashing the stack for some inputs :>
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
41599db904
Update makefiles
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
86ff14100f
Merge pull request #430 from libtom/fix/oid-decode
...
Fix OID issues
2018-09-07 11:57:38 +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
6584569872
add another OID testcase for root-node 3
2018-09-07 08:24:25 +02:00
Steffen Jaeckel
4ffdb915f0
fix der_decode_object_identifier()
2018-09-07 08:24:25 +02:00
Steffen Jaeckel
079ed04b17
add OID testcase from x.690
2018-09-07 08:24:25 +02:00
Steffen Jaeckel
bd542c6c30
Merge pull request #433 from orbea/rlibtool
...
makefile.shared: Support rlibtool.
2018-09-07 08:24:03 +02:00