John Jones
59f503d643
adjust asserts in fc/crypto
2018-06-01 19:00:48 -05:00
Alfredo Garcia
0a90eff697
Merge pull request #7 from bitshares/openssl-1.1-support
...
Openssl 1.1 support
2018-05-31 17:32:21 -03:00
Peter Conrad
f0dfc64261
Fixed diffie-hellman shared key computation
2018-05-10 15:24:04 +02:00
Peter Conrad
a3272e4f9e
Ripped out unused blinding stuff
2018-04-26 17:35:45 +02:00
Peter Conrad
fccabf1eb6
Fixed blinding test + implementation
2018-04-21 21:42:45 +02:00
Peter Conrad
5706d58cdc
Fixed DH memory handling with openssl-1.1
2018-04-21 20:39:40 +02:00
Fabian Schuh
c0db16bf3b
Fix erros in unittest
2018-04-13 11:28:51 +02:00
Nathan Hourt
13d98e2cad
Add OpenSSL 1.1.0 support
...
These changes should add support for openssl 1.1.0 while maintaining
compatibility with 1.0.2
2018-04-12 14:58:13 +02:00
Peter Conrad
a91822616e
Added max_depth to remaining variant conversions
2018-03-18 10:49:44 +01:00
Peter Conrad
81c8d89341
Added max_depth parameter to variant conversions
2018-03-13 22:00:18 +01:00
Alexey Frolov
1ae7f6bb02
FIXES:
...
- 'bloom_test_1': infinite loop if file not exists
- 'websocket_test': uncatched exceptions
- 'fc_crypto*' test_stream<>: uninitialized variable (hash)
- 'blowfish_chain_test': using memory after allocated heap
- memcmp: passing nullptr, when non-null expected
- undefined behavior: return value from function
- static_variant: member alignment - performance issue on 64-bit arch
- memory leak: fc::thread cleanup in asio thread
- warning: signed-unsigned comparison
- warning: unused variables
2018-02-05 12:19:06 +03:00
Alexey Frolov
5138c58e09
sanitize, remove warnings
2018-02-02 15:29:46 +03:00
Vikram Rajkumar
cb627980a5
Remove unused CyoEncode and Base32
...
5c466150ec
2017-06-04 18:13:13 -05:00
Vikram Rajkumar
a30647d32e
Revert "Add OpenSSL 1.1.0 support"
...
This reverts commit fee06a4c75 .
Max compatible Boost version is not compatible with OpenSSL 1.1.0
2017-06-04 17:44:25 -05:00
Vikram Rajkumar
680731ef1b
Remove equihash
2017-06-01 16:11:35 -05:00
Nathan Hourt
fee06a4c75
Add OpenSSL 1.1.0 support
...
These changes should add support for openssl 1.1.0 while maintaining
compatibility with 1.0.2
2017-04-25 15:50:56 -05:00
theoreticalbts
fe8710a7aa
Implement test_canonical_order and test_intermediate_zeros for equihash
2016-12-13 15:27:44 -05:00
Michael Vandeberg
50dbc2b139
Add equihash
2016-11-16 11:23:33 -05:00
theoreticalbts
636d4530e3
sha256: Add method to return approx log as double
2016-10-04 14:19:59 -04:00
theoreticalbts
585cea9472
sha256: Add inverse log and testing
2016-10-04 14:19:59 -04:00
theoreticalbts
f3e69d81a9
sha256: Implement and test clz(), approx_log_32()
2016-08-11 12:10:14 -04:00
arhag
66d4b0841d
Changes to fc to get MinGW cross-compilation working
2016-05-22 01:33:19 -04:00
Daniel Larimer
eaa763aff1
adding canonical flag
2016-03-11 12:33:33 -05:00
Daniel Larimer
7840ef16e9
adding rshift
2016-02-04 16:32:13 -05:00
Michael Vandeberg
d74eee8110
Implements deserialize for extended_public_key and extended_private_key.
...
Implementation needed by cryptonomex/graphene#500
2016-01-07 17:14:16 -05:00
Eric Frias
2b2dfc62fc
Win32 compile fixes (replace nonstandard runtime-sized auto arrays with alloca)
2015-10-05 12:09:35 -04:00
Daniel Larimer
7e32df4978
Merge pull request #46 from pmconrad/blinding
...
Blinding a la Oleg Andreev
2015-10-01 09:55:28 -04:00
Eric Frias
18ed468c6f
Win32 compile fix (allocate buffer on heap instead of stack, probably a good
...
idea anyway given fc task stack sizes)
2015-08-17 12:38:54 -04:00
Peter Conrad
e3fc463efc
Initialize openssl properly, use ssl wrapper types instead of ..._free, unify DH_check
2015-07-30 17:43:43 +02:00
Peter Conrad
5377b45d97
Fixed signedness, simplified word-shift
2015-07-30 14:58:35 +02:00
Peter Conrad
d67c18f6c3
Fixed shift in hashes + more tests
2015-07-29 23:22:34 +02:00
Peter Conrad
ef92e68146
Created + added test vectors, various fixes - working!
2015-07-29 21:00:08 +02:00
Peter Conrad
622de81402
Added tests, fixes (sig format, canonicalization)
2015-07-29 21:00:08 +02:00
Peter Conrad
56e98e136a
Initial blinding implementation, untested
2015-07-29 21:00:08 +02:00
Peter Conrad
5ecdcba4b6
Some refactoring
2015-07-29 21:00:08 +02:00
Peter Conrad
0f67ca751e
Implemented extended keys
2015-07-29 20:59:32 +02:00
Peter Conrad
0878e7f8f8
Tested + fixed more cases
2015-07-27 22:22:20 +02:00
Peter Conrad
fe0ec4a42d
Added FC_ASSERT to prevent buffer overflow
2015-07-27 21:23:15 +02:00
Peter Conrad
0e681dfb1c
Added tests for base_n encodings, fixed base32 + base36
2015-07-27 21:23:15 +02:00
Daniel Larimer
d76a15ec89
adding child key derivation for ecc keys
2015-07-23 18:45:35 -04:00
Vikram Rajkumar
943fe5150e
Remove unused salsa20
...
See https://github.com/bitshares/bitshares/issues/1089
2015-06-23 15:43:36 -04:00
Vikram Rajkumar
43f3aff577
Remove unused scrypt-jane
...
See https://github.com/bitshares/bitshares/issues/1016
2015-06-23 15:34:28 -04:00
Eric Frias
10e747409c
Fix FC win32 compiling (secp256k1 related errors)
2015-06-15 14:38:33 -04:00
Daniel Larimer
8087aa66d0
removing AGPL code
2015-06-11 09:10:12 -04:00
Daniel Larimer
a824aa04a9
Mapping blinding crypto to fc ecc api
2015-06-10 18:34:19 -04:00
Eric Frias
043ead5579
Fix compile with microsoft c++ which still doesn't support noexcept
2015-05-22 16:15:00 -04:00
Peter Conrad
d9f6b7a526
Rebase + upgrade to latest libsecp256k1 API
2015-05-07 15:59:21 +02:00
Peter Conrad
a164a55c86
Fixed move constructor + assignment
2015-05-07 14:51:03 +02:00
Peter Conrad
5782fd42af
Added missing constructors + pubkey::valid
2015-05-07 14:51:03 +02:00
Peter Conrad
05dee8669f
Much refactoring
...
Fixed Move semantics in openssl impl
Use in-place construction for secp256k1
Swapped implementations in mixed - sign with libsecp256k1, verify with openssl
2015-05-07 14:51:03 +02:00