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
orbea
ccc18b9eda
makefile.shared: Support rlibtool.
...
When building libtomcrypt with rlibtool instead of libtool it will fail
when rlibtool fails to parse the generated libtool which does not exist.
Since rlibtool should be the default choice for most slibtool users in
the future this patch will use slibtool-shared instead which will
correctly build the shared library.
This could also help build the shared library on additional targets and
hosts where the stock libtool does not have shared libraries enabled.
2018-09-06 18:19:10 +02:00
Steffen Jaeckel
c9c3c42739
Merge branch 'streams-make_state_names_consistent' into develop
...
This fixes #427
2018-07-10 07:11:39 +02:00
buggywhip
380d1d2452
streams-make_state_names_consistent
2018-07-09 17:31:24 -07:00
karel-m
c9376c29ba
Merge pull request #428 from libtom/pr/fix-gcc-warnings1
...
fix -Wmissing-declarations -Wmissing-prototypes -Wmissing-noreturn
2018-07-09 11:32:35 +02:00
Karel Miko
ba8fa04f9a
reorganize ifdefs in tv_gen
2018-07-08 21:59:06 +02:00
Karel Miko
4fb0562a3b
fix -Wmissing-declarations -Wmissing-prototypes -Wmissing-noreturn
2018-07-07 19:54:08 +02:00
Steffen Jaeckel
b5009d704c
Merge pull request #426 from libtom/feature/pkcs12
...
Feature/pkcs12
2018-07-06 18:37:54 +02:00
Steffen Jaeckel
53fc5694c9
re-work pkcs12 a bit
2018-07-06 18:26:43 +02:00
Steffen Jaeckel
6fe1b5b765
Update makefiles
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-m
98ad88b3ee
Merge pull request #422 from libtom/pr/clang-tidy-google-readability-braces-around-statements
...
fix clang-tidy warning: google-readability-braces-around-statements
2018-07-06 17:53:12 +02:00
Karel Miko
a3dab04074
fix clang-tidy warning: google-readability-braces-around-statements
2018-07-06 13:58:15 +02:00
karel-m
e02694cfc2
Merge pull request #393 from libtom/pr/ecc-doc-update
...
ECC doc update
2018-07-06 13:44:17 +02:00
Karel Miko
4f3bce103f
move ecc_make_key_ex to Legacy Key Generation
...
[skip ci]
2018-07-06 13:42:54 +02:00
Karel Miko
b30c27066d
new names: ecc_find_curve, ecc_set_curve
2018-07-06 13:42:38 +02:00
Steffen Jaeckel
415c19b8df
re-work ECC docs a bit
...
[skip ci]
2018-07-06 13:42:38 +02:00
Karel Miko
57c884d50d
ECC doc update
...
[skip ci]
2018-07-06 13:42:38 +02:00
karel-m
d3c5890a1b
Merge pull request #423 from libtom/pr/ecc_set_dp--ecc_set_curve
...
rename ecc_set_dp >> ecc_set_curve + ecc_get_curve >> ecc_find_curve
2018-07-06 13:39:51 +02:00