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
Peter Conrad
10897adf1e
Hopefully this is more thread-safe
2015-05-07 14:51:03 +02:00
Peter Conrad
d69e67c032
Work around too deterministic nonce
2015-05-07 14:51:03 +02:00
Peter Conrad
1de9a3ba87
Bugfix
2015-05-07 14:51:03 +02:00
Peter Conrad
abab7617c8
Minor fixes
2015-05-07 14:51:02 +02:00
Peter Conrad
2f383f078f
More refactoring
2015-05-07 14:51:02 +02:00
Peter Conrad
bab3864437
Added mixed implementation, fixed interop test script
2015-05-07 14:51:02 +02:00
Peter Conrad
55f9cf5e16
Added mixed implementation, fixed interop test script
2015-05-07 14:51:02 +02:00
Peter Conrad
414617d8e3
Refactoring, step 2
2015-05-07 14:51:02 +02:00
Peter Conrad
55c5773a46
Started refactoring
2015-05-07 14:51:02 +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
Peter Conrad
8bcaa01541
Mark internal helper functions as static
2015-05-07 14:48:00 +02:00
Nathan Hourt
4194a609c2
Allow hashing of uint128
2015-03-06 16:41:52 -05:00
Vikram Rajkumar
ee370dd5a8
Define sha256::hash( sha256 )
2015-02-11 18:58:19 -05:00
theoretical
0642eb63d3
Throw more appropriate exception type in from_base58
2015-01-21 14:57:04 -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
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
Nathan
55e7a073cf
Fix build error in salsa20.cpp
2014-09-09 16:09:49 -04:00
Daniel Larimer
6e31ffd963
Merge branch 'master' of https://github.com/InvictusInnovations/fc
2014-08-01 17:21:24 -04:00
PaulEU
eae493a8c1
Remove unnecessary code from init_openssl after update new OpenSSL package.
2014-07-29 23:44:47 +02:00
Daniel Larimer
3ccbe26dd5
adding aes exception
2014-07-29 13:54:50 -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
grzegorzs
06fe9e0303
[GS] Fix types u_int32_t to uint32_t etc. - continued
2014-07-15 14:20:42 +02:00
Vikram Rajkumar
e442b29f6e
Fix scrypt
2014-07-14 13:40:33 -04:00
Eric Frias
a034239313
Add missing include
2014-07-07 12:36:34 -04:00
Eric Frias
62ea4ae9c3
Add mutexes to make OpenSSL thread safe
2014-07-07 12:22:01 -04:00
Eric Frias
560b107e58
Fix signed/unsigned warnings
2014-06-26 15:51:01 -04:00
Eric Frias
862e7bb5d3
fix a few 64-bit to 32-bit conversion warnings
2014-06-26 15:50:40 -04:00
Eric Frias
f01d25788e
Fix 32-bit error in uint128 to bigint conversion, move bswap_64 into its own header file
2014-06-11 17:32:59 -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
PaulEU
7b2361518c
Use _putenv instead of putenv because on some Windows machines putenv doesn't work properly.
2014-06-05 10:00:50 +02:00
Daniel Larimer
73dd2d68ea
fix for mac
2014-06-03 11:16:29 -04:00
vogel76
57e1d60257
[BW]: [Fix] Looks like OpenSSL_config argument doesn't refer to configuration file path, which can be passed only through environment variable unfortunetly.
2014-06-03 17:04:34 +02:00
Eric Frias
2220920126
Fix signed bigint conversion (probably never used)
2014-06-02 17:19:36 -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
dnotestein
54c66bbb86
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
...
Conflicts:
src/crypto/aes.cpp
2014-05-27 09:44:54 -04:00
dnotestein
d1c3637a9f
Fix variable name (input parameter to function is length of cipher text, not decoded plain text) and function comments (looks like it was some copy/paste error).
2014-05-27 09:40:23 -04:00
Vikram Rajkumar
6b455ab850
Fix typos
2014-05-19 02:52:21 -04: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
Daniel Larimer
c7baf276a1
scrypt code does not compile with clang
2014-02-21 15:10:34 -05:00
batmaninpink
1b8b4da925
fix scrypt-jane OS X compile
2014-02-21 20:57:04 +01:00
Daniel Larimer
cfb2356ab2
remove script which doesn't build on OS X
2014-02-20 22:00:10 -05: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
Yuvaraj Gogoi
c72ed39acd
Fix for issue #216
2014-01-19 00:38:04 +05:30
Yuvaraj Gogoi
823c709f41
Fix for issue #216 Build fails on Linux 32 bit - __mm_crc32_u64
2014-01-17 03:32:58 +05:30
Daniel Larimer
f618f3a10f
updated ip serialization forwards
2014-01-04 01:21:11 +00:00
Daniel Larimer
a0e648acef
improve error message
2013-12-17 20:40:41 -05:00
Daniel Larimer
b8a9c77269
adding helper function to return uncompressed ecc pub key
2013-12-09 22:25:59 -05:00
Daniel Larimer
cf37cd776b
update reflect
2013-10-22 22:02:55 -04:00
Daniel Larimer
b644ce2b67
fix bug loading null pubkey from binary
2013-09-11 17:54:45 -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
5bf5cf9219
adding aes_load and aes_save methods
2013-08-31 13:12:55 -04:00
Daniel Larimer
3acfe018b1
various updates
2013-08-25 01:24:07 -04:00
Daniel Larimer
6a1f42aba0
adding new crypto apis
2013-08-24 04:25:03 -04:00
Daniel Larimer
105948ea65
json and variant bug fixes
2013-08-15 12:44:51 -04:00
Daniel Larimer
f954ff1a25
fix bugs with bigint
2013-08-14 01:11:48 -04:00
Daniel Larimer
e19c3327a0
adding aes encryption and openssl wrapper cleanup
2013-08-13 12:58:55 -04:00
Daniel Larimer
9ece96f36e
adding unimplemented method
2013-08-11 18:14:53 -04:00
Daniel Larimer
dd18675788
fix boost 1.54 support
2013-08-11 10:18:08 -04:00
dnotestein
404cf8ae5c
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
...
Conflicts:
CMakeLists.txt
include/fc/ptr.hpp
2013-08-11 09:59:55 -04:00
dnotestein
94ce5cd9f2
more windows related changes, check what I was thinking with that BOOST1_51 when not in a hurry, maybe it should just be removed now
2013-08-10 22:11:59 -04:00
Daniel Larimer
1f03f67d1d
added new elliptic curve crypto methods
2013-08-10 02:33:15 -04:00
Daniel Larimer
b6bf4bb389
fix edge condition in generating ecc key from seed
2013-08-02 17:14:26 -04:00
Daniel Larimer
fbadc5bdfa
fix uninitialized variables in ecc::compact_signature (fc::array) and a few other places
2013-08-02 14:32:59 -04:00
Daniel Larimer
8a9d0c9e13
adding ripemd160
2013-07-28 10:49:45 -04:00
Daniel Larimer
c8839553c0
updated 128bit int math and bigint
2013-07-28 02:13:31 -04:00
Daniel Larimer
637372bbc2
unify city uint128 with new uint128 class
2013-07-26 23:26:51 -04:00
Daniel Larimer
72a1c45905
more bigint operators
2013-07-19 23:50:04 -04:00
Daniel Larimer
f5f3bb5102
error cleanup, log cleanup, bug fixes
2013-07-18 22:19:19 -04:00
Daniel Larimer
4ea60ef088
fix crashes in ecc handling with nullptr
2013-07-18 19:08:58 -04:00
Daniel Larimer
2ef8cfa06e
fix bigint bugs
2013-07-17 20:55:36 -04:00
Daniel Larimer
87542eba25
adding city hash
2013-07-17 11:50:45 -04:00
Daniel Larimer
a0f41aa397
various updates and enhancements to crypto and network code
2013-07-17 02:01:35 -04:00