Saleem Rashid
c70e440128
hasher: Replace hasher_Double with HASHER_*D
...
This allows us to finely control when to use a single hash or a double hash in
various places. For example, Bitcoin signatures use double SHA256, but Decred
signatures use a single BLAKE256. However, both use double hashes for Base58.
2018-04-03 18:28:06 +02:00
Jochen Hoenicke
009850f6c9
Fixed undefined behavior
...
This fixes a shift by 32 and shifts on signed integer that overflow.
2018-03-27 15:04:55 +02:00
Tomas Susanka
49272f8d86
bip32/nem: added test data for encryption of block size multiple
2018-03-20 17:18:28 +01:00
Peter D. Gray
cb8c910a0c
Makefile: simplify include path, move subdirs to where used in C files
2018-01-13 14:51:51 +01:00
Saleem Rashid
764cc4c6e8
bip32: Add secp256k1-decred
2017-12-10 20:07:13 +01:00
Saleem Rashid
136c62e970
bip32: Add curve to hdnode_deserialize
2017-12-10 20:07:13 +01:00
Saleem Rashid
b41f5407cc
test_check: Attribute test vectors to Monero
2017-12-10 20:07:13 +01:00
Saleem Rashid
7cdbec2d11
blake256: Initial commit
2017-12-10 20:07:13 +01:00
Saleem Rashid
b41a51805f
Use hasher_Raw instead of sha256_Raw
2017-12-10 20:07:13 +01:00
Jochen Hoenicke
506167e3f2
Bech32 (BIP173) address support
2017-11-03 18:49:19 +01:00
Saleem Rashid
9c91985674
test_check: Add nem_transaction test case
2017-09-02 01:39:09 +02:00
Saleem Rashid
3808a30381
test_check: Add test_nem_cipher
2017-09-02 01:39:09 +02:00
Saleem Rashid
e1818468c7
test_check: Add test_nem_derive
2017-09-02 01:39:09 +02:00
Saleem Rashid
501c778812
test_check: Add test_nem_address
2017-09-02 01:39:09 +02:00
Saleem Rashid
90d84ea173
test_check: Add RC4 tests
2017-08-14 00:11:48 +02:00
Saleem Rashid
6580044196
test_check: Clean up test_bignum tests
...
This also tests zero
2017-07-27 21:20:43 +02:00
Saleem Rashid
43ea1392f2
bignum: rename bn_maxdigitcount to bn_digitcount
...
This reverts commit 5dbdf18b6c
.
2017-07-27 21:20:43 +02:00
Pavol Rusnak
5e1a3ad6e0
tests: add more tests for bn_format{,_uint64}
2017-07-27 19:57:04 +02:00
Pavol Rusnak
ea7e1b860d
test: reorder function in source
2017-07-27 19:28:00 +02:00
Pavol Rusnak
5dbdf18b6c
bignum: rename bn_digitcount to bn_maxdigitcount (can return value one higher than the real result)
2017-07-27 19:21:56 +02:00
Pavol Rusnak
fd78df0e57
test: add more tests for bitcount and digitcount
2017-07-27 18:43:26 +02:00
Saleem Rashid
da586bb37a
test_check: Add more bn_format tests
2017-07-27 17:55:33 +02:00
Saleem Rashid
88527dde7a
bignum: Add exponent and trailing to bn_format
2017-07-27 17:55:33 +02:00
Saleem Rashid
22ebd62b85
test_check: Update bn_format tests
2017-07-27 17:55:33 +02:00
Saleem Rashid
558bc429ec
bignum: Add bn_digitcount
2017-07-27 17:55:33 +02:00
Pavol Rusnak
af06a997cb
refactor ecdsa_get_address_segwit_p2sh{,_raw}
2017-07-25 17:59:26 +02:00
Pavol Rusnak
c950342063
refactor hdnode_public_ckd_address_optimized
2017-07-24 22:57:20 +02:00
Pavol Rusnak
f49fe75e15
fix ethereum_address_checksum implementation
2017-07-11 21:17:22 +02:00
Pavol Rusnak
ce81cc61df
add ethereum_address_checksum
2017-07-11 19:24:45 +02:00
Saleem Rashid
3806c6fcd3
test_check: Add Base32 lowercase RFC4648 tests
2017-06-08 22:00:32 +02:00
Saleem Rashid
d4b5e64ba2
test_check: Add MARK_SECRET_DATA to test_ed25519_keccak
2017-06-05 16:34:52 +02:00
Saleem Rashid
ce25dcc9fc
tests: Import NEM test vectors for ed25519_keccak
2017-06-05 16:34:52 +02:00
Saleem Rashid
dc397ff0ed
tests: Import NEM test vectors for keccak_256
2017-06-05 16:34:52 +02:00
Saleem Rashid
0afb53fba2
base32: Return char* from base32_encode
2017-06-05 12:32:48 +02:00
Saleem Rashid
0912c4d215
base32: Add base32_decode family of functions
2017-06-05 12:32:48 +02:00
Saleem Rashid
c4db240e70
base32: Add base32_decoded_length
2017-06-05 12:32:48 +02:00
Saleem Rashid
1df57c3de2
tests: Add test_base32_rfc4648
2017-06-05 12:32:48 +02:00
Saleem Rashid
3d6c726bc4
test_check: Move UNMARK_SECRET_DATA in test_ed25519_cosi
2017-06-05 12:16:54 +02:00
Saleem Rashid
5f7d34a506
test_check: Document UNMARK_SECRET_DATA further
2017-06-05 12:16:54 +02:00
Saleem Rashid
9da2e2440a
test_check: Add MARK_SECRET_DATA to test_ed25519{,_cosi}
2017-06-05 12:16:54 +02:00
Pavol Rusnak
edb31b89a8
remove test_{sign,verify}_speed from tests.c, rename tests to test_check.c, rework test_speed
2017-06-04 00:35:19 +02:00