Eric Frias
2c8cdf84b7
Merge commit '622ff58'
2017-06-20 17:27:58 -04:00
Vikram Rajkumar
cb627980a5
Remove unused CyoEncode and Base32
...
5c466150ec
2017-06-04 18:13:13 -05:00
Vikram Rajkumar
680731ef1b
Remove equihash
2017-06-01 16:11:35 -05:00
oxarbitrage
25d7b3055f
struct range_proof_info change int to int64_t
...
https://github.com/bitshares/bitshares-core/issues/160
2017-03-17 18:31:45 -03: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
Daniel Larimer
ee6ee27290
clean up tests and add some utility methods
2016-10-24 17:44:53 -04: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
Daniel Larimer
eaa763aff1
adding canonical flag
2016-03-11 12:33:33 -05:00
Eric Frias
fa2b8fd4d2
Merge branch 'cryptonomex_master'
...
# Conflicts:
# src/network/http/websocket.cpp
2016-02-26 11:16:10 -05:00
Daniel Larimer
7840ef16e9
adding rshift
2016-02-04 16:32:13 -05:00
Daniel Larimer
6495004302
move potential yields outside of catch
2015-10-09 17:08:03 -04:00
Eric Frias
f9e3f0c4e6
Merge branch 'github_master'
2015-10-06 17:02:25 -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
008dafe7d0
Merge branch 'github_master'
...
Conflicts:
src/asio.cpp
src/network/http/websocket.cpp
2015-09-18 16:03:34 -04:00
Daniel Larimer
483b348878
Merge branch 'master' of https://github.com/cryptonomex/fc
2015-09-11 08:55:02 -04:00
Daniel Larimer
99e1c1fd52
fix warnings
2015-09-11 08:54:51 -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
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
0575840a9c
Implemented HMAC template + test
2015-07-29 20:58:44 +02:00
Daniel Larimer
d76a15ec89
adding child key derivation for ecc keys
2015-07-23 18:45:35 -04:00
Eric Frias
55111ebbb5
Merge branch 'github_master'
2015-07-14 13:32:58 -04:00
Eric Frias
1e6176911a
Fix bugs in http request when using chunked content encoding.
...
Add missing support for parsing/reconstructing URLs with query strings
to fc::url.
Add md5 hash algorithm.
2015-07-10 10:07:14 -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
Daniel Larimer
3a392eba51
adding typdefs and exta testing
2015-06-12 09:49:40 -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
Daniel Larimer
68410f35fe
defining new api calls
2015-06-10 12:54:12 -04:00
theoreticalbts
af636c10a2
Add data_size() member to hash classes
2015-05-28 10:23:27 -04: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
Peter Conrad
7b15098f3a
Woot!
2015-05-07 14:49:52 +02:00
Peter Conrad
34af5d98ec
Intermediate version
2015-05-07 14:49:52 +02:00
Peter Conrad
f17444d90b
Added ECC_IMPL switch + interop test
2015-05-07 14:48:00 +02:00
Nathan Hourt
4194a609c2
Allow hashing of uint128
2015-03-06 16:41:52 -05:00
Daniel Larimer
9b7753b127
adding hash method to sha224
2015-03-06 15:12:09 -05:00
Daniel Larimer
ec66863902
added type for safe int ops
2015-02-19 11:39:17 -05:00
Daniel Larimer
cf4ed08d4b
Merge branch 'master' of github.com:BitShares/fc
2015-02-17 09:55:36 -05:00
Daniel Larimer
93a789891e
Adding is_utf8 call and making enum_type cast explicit
2015-02-17 09:55:31 -05:00
Vikram Rajkumar
ee370dd5a8
Define sha256::hash( sha256 )
2015-02-11 18:58:19 -05:00
Daniel Larimer
0bf2f9cfd4
fix conflict
2015-02-11 18:32:23 -05:00
Daniel Larimer
71e4e221b7
merge
2015-02-11 18:28:29 -05:00
Daniel Larimer
057861c608
extra raw io helpers
2015-02-11 18:27:33 -05:00
Vikram Rajkumar
54a51c3471
Define fc::ripemd160::hash() for arbitrary serializable objects
2015-02-05 18:52:03 -05:00
Vikram Rajkumar
36baae683e
Minor spelling fix
2014-12-11 19:16:02 -05:00
Daniel Larimer
a4a90fac05
Update to elliptic curve signature verification
2014-12-10 22:43:37 -08:00
Daniel Larimer
42ff2b10de
adding digest helper utility
2014-10-28 16:23:45 -04:00
Daniel Larimer
dfe67a4494
adding blob type to variant
2014-10-15 23:32:37 -04:00
Vikram Rajkumar
5fa3cb8632
Add < operation to private_key to allow usage as an ordered key
2014-10-02 12:55:20 -04:00
Eric Frias
2f066e4adf
Fix a crash in fc::process when not capturing all three stdin/out/err
...
Quiet a few 64-bit warnings.
2014-09-18 11:17:41 -04:00
PaulEU
4890351b34
Added OpenSSL configuration file path. (qt_wallet issue #10 Some clients on Windows 7 quit/crash on start)
2014-07-23 00:18:09 +02:00
Eric Frias
f2cbb650c6
Merge branch 'master' of github.com:InvictusInnovations/fc
2014-07-14 19:26:17 -04:00
Eric Frias
c28ccd2413
Fix wacky types u_int32_t to uint32_t &c
2014-07-14 19:25:54 -04:00
Vikram Rajkumar
e442b29f6e
Fix scrypt
2014-07-14 13:40:33 -04:00
Eric Frias
560b107e58
Fix signed/unsigned warnings
2014-06-26 15:51:01 -04:00
Daniel Larimer
b02210a361
fix implicit bigint to bool
2014-06-12 17:36:58 -04:00
Daniel Larimer
454da57a32
adding base58 helper
2014-06-11 17:28:47 -04:00
Daniel Larimer
0c64d208d9
adding ntp support to fc
2014-06-11 15:17:28 -04:00
Eric Frias
2251d0f241
Fix bigint on conversions to and from 64-bit integers on 32-bit platforms
...
Fixes BitShares/bitshares_toolkit#150
2014-06-02 13:32:42 -04:00
vogel76
04f07aa429
[BW]: [Fix] Eliminated OpenSSL initialization from CRT init time (which caused random problems on windows7 machines leading the application to silent crash). Right now it is done at first use of fc parts using it. Also added method to setup OpenSSL configuration path to custom one (to avoid using path compiled into OpenSSL at configuration & build time).
2014-06-02 17:34:04 +02:00
Daniel Larimer
861221098f
made ripemd160 string conversion operator explicit
2014-05-30 14:29:00 -04:00
Daniel Larimer
65361f1fce
updated typedefs for clarity
2014-05-25 23:12:33 -04:00
Vikram Rajkumar
c9529c8f87
Return synonym "uint160_t" for uint160 typename to not break leveldb upgrade routine
2014-05-22 03:52:59 -04:00
Daniel Larimer
06bc873da0
improving error reporting in deserialization
2014-05-17 19:35:44 +00:00
Eric Frias
2837892ec0
Upgrade to new version of city_hash library. This version has performance improvements, plus implements a variant with 32-bit output which will quiet some compiler warnings on win32.
2014-05-14 17:11:36 -04:00
Eric Frias
3d02e3bc00
Wrap OpenSSL's random number generator in fc clothing
2014-04-02 08:54:13 -04:00
dnotestein
10127a854c
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
...
Conflicts:
src/crypto/elliptic.cpp
2014-03-30 18:32:20 -04:00
dnotestein
f09c91f878
added hash64 function that uses sha256 to replace city_hash in blockchain and message protocol-related hashing
2014-03-30 14:16:33 -04:00
Daniel Larimer
5f9dfa9a42
update http code
2014-03-27 19:53:40 -04:00
Daniel Larimer
987568e31b
update apis
2014-03-27 01:09:08 -04:00
vogel76
163be8a6d0
[BW]: [NIP] Added public_key::to_base58 text conversion to simplify contact display_name generation at bts side.
2014-03-03 11:31:08 +01:00
Daniel Larimer
4b2d221c05
fix ecc point seralization
2014-02-27 23:35:24 -05:00
BrownBear
46bfcfe74d
added missing files: romix.[hc]pp
2014-02-27 12:37:23 +01:00
BrownBear2
49ff83922b
added romix kdf and cfb for aes
2014-02-26 12:05:17 +01:00
Tzadik Vanderhoof
0761d32d01
safer sha256 binary constructor
2014-02-24 02:08:48 -05:00
Tzadik Vanderhoof
57769e4df9
BSX-21 Import Bitcoin Private Key from String
2014-02-24 00:47:00 -05:00
Nicolas Wack
30ee9868e6
Fix compilation on mac os with clang/libc++
2014-02-22 19:27:53 +01:00
batmaninpink
1e509fa1a9
added support for scrypt key derivation needed for multibit wallet support
2014-02-18 08:59:17 +01:00
Daniel Larimer
5178ca8c1a
added api methods to encryption functions
2014-02-16 21:28:55 -05:00
dnotestein
68281f4dc0
Added get_typename function needed by new leveldb database upgrading code (uint160 is stored in blockchain database).
2014-02-11 23:10:24 -05:00
Daniel Larimer
09c84c1731
fixes to build under clang++
2014-02-06 03:22:09 -05:00
Daniel Larimer
0db28ec6de
Merge pull request #3 from wackou/fix_clang_compile
...
Fix clang compile
2014-02-06 02:46:43 -05:00
Daniel Larimer
52a4a46cca
std::hash supprot for sha256
2014-01-30 15:10:05 -05:00
batmaninpink
ccd2bbe7b2
expose aes_decrypt for use elsewhere
2014-01-20 15:17:39 +01:00
Nicolas Wack
271781f78c
Fix compilation with clang/libc++
...
The issue was that redeclaring the hash template in the code somehow seems to shadow the declaration that is done in <functional> and <memory> and afterwards the template specialization of the hash function seems to use our redefined template instead of libc++’s one (most likely due to the fact that libc++ uses an inline namespace inside std)
2014-01-19 19:30:42 +01:00
Daniel Larimer
b8a9c77269
adding helper function to return uncompressed ecc pub key
2013-12-09 22:25:59 -05:00
dnotestein
760c94d20f
Untested popcnt code for Windows
2013-09-22 14:10:40 -04:00
Daniel Larimer
81c0290568
raw pack of fc::path
2013-09-21 22:48:50 -04:00
Daniel Larimer
3da6a03987
adding not equal operator to fc::ecc::public_key
2013-09-13 23:13:11 -04:00
Daniel Larimer
68b9fafe9a
disable padding for aes_encoder and decoder
2013-09-05 22:09:12 -04:00
Daniel Larimer
8c95d62c9e
two phase init of aes encoder/decoder
2013-09-05 19:02:10 -04:00
Daniel Larimer
be836e3e47
add stream-based aes decryption
2013-09-05 18:49:55 -04:00
Daniel Larimer
b615522217
add typedefs for forward compat
2013-08-31 13:56:59 -04:00
Daniel Larimer
5bf5cf9219
adding aes_load and aes_save methods
2013-08-31 13:12:55 -04:00