Daniel Larimer
7e32df4978
Merge pull request #46 from pmconrad/blinding
...
Blinding a la Oleg Andreev
2015-10-01 09:55:28 -04:00
Peter Conrad
a9364db96b
Refactored + extended websocket test
2015-08-30 22:15:20 +02:00
Peter Conrad
899a5c489b
Added tests for UTF-8
2015-08-23 22:15:47 +02:00
Peter Conrad
9b37e72140
Added simple randomness test (Wald–Wolfowitz runs)
2015-07-30 18:37:44 +02:00
Peter Conrad
bfa1433cdd
Added test for diffie-hellmann key exchange
2015-07-30 17:42:20 +02:00
Peter Conrad
d67c18f6c3
Fixed shift in hashes + more tests
2015-07-29 23:22:34 +02:00
Peter Conrad
0f67ca751e
Implemented extended keys
2015-07-29 20:59:32 +02:00
Peter Conrad
31437bd248
Started with SHA test cases
2015-07-27 23:05:39 +02:00
Peter Conrad
8e514128b6
Added blowfish tests
2015-07-27 21:23:15 +02:00
Peter Conrad
0b9066ae48
Added bigint test cases
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
Peter Conrad
19b6de0e24
Created tests/* subfolders
2015-07-27 21:23:15 +02:00
Peter Conrad
ca896b2c85
More refactoring
2015-07-27 21:23:15 +02:00
Peter Conrad
5f4ff1aa21
More tests refactored
2015-07-27 21:23:15 +02:00
Peter Conrad
dda63f4fc8
Refactored tests, fixed AES test
2015-07-27 21:23:15 +02:00
Peter Conrad
39b47c36f0
Re-enabled + refactored compress test, added zlib test case
2015-07-27 21:23:15 +02:00
theoreticalbts
7bd47af88e
rpc: Move many method implementations from headers to cpp files
2015-06-30 15:54:29 -04:00
Vikram Rajkumar
fe7eed6beb
Fix building with Ninja
2015-06-26 11:14:02 -04:00
Scott Howard
1c43f79b16
simplify secp256k1 install and portabillity
2015-06-25 19:34:25 -04:00
Eric Frias
593a32d12a
Don't install secp256k1 when building in-source.
...
The install will refuse to overwrite its own files
and fail, terminating the build.
2015-06-25 14:57:19 -04:00
Eric Frias
9117b724c2
Prevent secp256k1 from autodetecting gmp
...
If we do allow gmp, we will need to change our CMakeLists.txt files to
detect whether secp256k1's configure detected gmp, and if so, link
gmp into all programs that use fc. For now I just disabled it entirely,
I don't know whether there's any noticable performance benefit to using
it.
2015-06-25 14:28:01 -04:00
Eric Frias
c3e50476af
Don't use the autoconf build system for secp256k1 on Windows
2015-06-25 13:57:10 -04:00
Scott Howard
d2b9e6017f
add include directories for secp256k1
2015-06-24 13:26:06 -04:00
Scott Howard
f6bd3274c4
build secp256k1 seperately
2015-06-24 02:08:17 -04:00
Vikram Rajkumar
701b9ac00c
Remove problematic easylzma
2015-06-23 16:19:36 -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
dd1c77b327
Fix websocketpp build error on win32
2015-06-17 11:07:09 -04:00
Eric Frias
10e747409c
Fix FC win32 compiling (secp256k1 related errors)
2015-06-15 14:38:33 -04:00
Vikram Rajkumar
f7cf9abe55
Add secp256k1-zkp submodule
2015-06-13 15:28:40 -04:00
Daniel Larimer
dde8ed9d7a
update default ecc implementation
2015-06-12 09:50:56 -04:00
Vikram Rajkumar
a86608bb9c
Disable building broken test
2015-06-11 20:34:24 -04:00
Daniel Larimer
d93744cf79
removing AGPL code
2015-06-11 09:10:38 -04:00
Daniel Larimer
a824aa04a9
Mapping blinding crypto to fc ecc api
2015-06-10 18:34:19 -04:00
Daniel Larimer
637f475e44
parse doubles as strings
2015-05-27 11:26:04 -04:00
Daniel Larimer
ccd14c7260
Merge pull request #4 from pmconrad/libsecp256k1
...
fc::ecc implementations based on libsecp256k1
2015-05-20 10:30:05 -04:00
Eric Frias
3508e0c034
Add overloads of comparison operators to allow comparison of safe/uint128 and native integer classes
2015-05-19 10:03:03 -04:00
Daniel Larimer
4f0919c493
adding sanity checks to string->json parsing
2015-05-12 12:58:47 -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
bab3864437
Added mixed implementation, fixed interop test script
2015-05-07 14:51:02 +02:00
Peter Conrad
55c5773a46
Started refactoring
2015-05-07 14:51:02 +02:00
Peter Conrad
20230b761e
Added documentation + automated interop test
2015-05-07 14:51:02 +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
theoreticalbts
80de0987d7
Add readline support to fc::rpc::cli
2015-04-29 16:37:54 -04:00
Peter Conrad
b8341a006e
Set Boost_USE_STATIC_LIBS to previous default ON but configurable
2015-04-27 14:57:45 +02:00
Peter Conrad
8e8dd9265a
Handle .lib on windows
2015-04-23 21:09:36 +02:00
Peter Conrad
3e7b554f65
Fixed variable case
2015-04-23 21:09:36 +02:00
Peter Conrad
381a1258d1
Disable boost static linking, workaround for BOOST_TEST_DYN_LINK
2015-04-23 21:09:36 +02:00
Daniel Larimer
74b707999c
fix bugs with websocket and integrate API support
2015-03-27 16:29:33 -04:00
Daniel Larimer
b8d7d3012d
abstracting rpc state
2015-03-26 18:17:47 -04:00
Daniel Larimer
4ce26f068f
implement simple websocket wrapper ontop of websocketpp
2015-03-26 16:51:10 -04:00
Daniel Larimer
ee9c2ac4ed
api progess
2015-03-09 18:50:20 -04:00
SynaptiCAD User
30e52b6b01
Fix GELF logging to split long messages, use compression
2015-02-22 14:07:05 -05:00
HackFisher
5cfb9fb75c
Fix CMake on OSX 10.10 (Can not find ZLIB)
...
6ddf1639c5
Become ok after revert the position, any comment on this?
```
-- Found OpenSSL: /usr/local/Cellar/openssl/1.0.1i/lib/libssl.a;/usr/local/Cellar/openssl/1.0.1i/lib/libcrypto.a (found version "1.0.1i")
CMake Error at /usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.5")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/FindZLIB.cmake:110 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
libraries/fc/CMakeLists.txt:94 (find_package)
```
2015-01-23 16:37:18 +08:00
Eric Frias
f3065b367e
Add log appender that sends logs in GrayLog Extended Log Format
2015-01-20 16:13:26 -05:00
Eric Frias
6ddf1639c5
Relocate zlib detection for fc
2014-12-22 17:54:05 -05:00
Daniel Larimer
cb66666edd
Merge branch 'master' of github.com:BitShares/fc
2014-12-10 22:58:53 -08:00
Daniel Larimer
a4a90fac05
Update to elliptic curve signature verification
2014-12-10 22:43:37 -08:00
valzav
0e4aeb135a
links zlib on mac if found
2014-11-26 10:34:31 -05:00
Vikram Rajkumar
5dbab6ba11
Disable scrypt-jane compilation due to problems with Clang
2014-11-19 14:40:02 -05:00
Nathan Hourt
c3a6b40188
Test and bugfix real128
2014-10-15 17:53:50 -04:00
Daniel Larimer
b55ae3431a
adding real 128 for fixed point 64.64 math
2014-10-15 17:00:49 -04:00
Eric Frias
6cddd42cfe
On windows, change the method we use for getting the home directory and app data directory to get it in unicode form. Partial fix for BitShares/bitshares_toolkit#791
2014-09-20 19:15:28 -04:00
Eric Frias
751777e754
Fix more locations where we were making boost::asio calls with buffers declared on the stack which could cause problems when the calling tasks were canceled.
2014-09-11 16:30:03 -04:00
Eric Frias
8841f5e271
Import thread/task_specific variables
2014-08-27 12:20:19 -04:00
Eric Frias
362884fc52
Import GNTP notification code
2014-08-21 15:21:48 -04:00
Eric Frias
978de7885a
Add a macro to check if a task that shouldn't yield actually yields.
2014-08-02 19:43:28 -04:00
Vikram Rajkumar
8fff034711
Fix linux clang compilation
2014-07-24 15:33:56 -04:00
Gandalf-the-Grey
9aa7700d06
Fix for Linux needed to build Keyhotee.
2014-07-23 10:15:46 -04:00
Vikram Rajkumar
e442b29f6e
Fix scrypt
2014-07-14 13:40:33 -04:00
Vikram Rajkumar
506f896de4
Re-enable romix compilation
2014-07-14 10:46:15 -04:00
Vikram Rajkumar
caae9e640f
Fix travis compilation error
2014-07-12 17:59:09 -04:00
Vikram Rajkumar
39c7f05ea9
Implement LZMA file decompression
2014-07-03 00:01:02 -04:00
Vikram Rajkumar
f56dd6d208
Implement LZMA file compression
2014-07-02 23:28:43 -04:00
Daniel Larimer
892df5c0b7
canceled scheduled tasks return immediately when waited upon
2014-06-28 21:46:10 -04:00
Daniel Larimer
1e80a7071f
fix linking issue on linux
2014-06-27 19:04:23 +00:00
Daniel Larimer
5529b300d9
implemented working UDT socket/server
2014-06-26 11:25:07 -04:00
Daniel Larimer
5c98d7864f
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc
2014-06-26 08:48:12 -04:00
Daniel Larimer
456c81df27
fix potential errors in NTP caused by running in main thread
2014-06-25 23:32:09 -04:00
Eric Frias
77d0c56627
Remove un-committed files
2014-06-25 18:34:33 -04:00
Daniel Larimer
3914383cfc
removing udt from build
2014-06-24 23:23:54 -04:00
Daniel Larimer
a5747c18db
remove udt files from build
2014-06-24 23:23:27 -04:00
Daniel Larimer
f490b607a8
Integrate UDT vendor branch + tests
2014-06-24 21:57:38 -04:00
Eric Frias
653fd2ca8b
Fix CMake's OPENSSL_ROOT_DIR environment variable handling (fixes some win32 builds)
2014-06-17 11:35:52 -04:00
Eric Frias
f6eb41329a
Fix unix build
2014-06-17 10:58:57 -04:00
Eric Frias
0579b12b56
Changes to make libraries that use FC automatically get the right dependent libraries
2014-06-17 10:06:00 -04:00
Daniel Larimer
88162349f1
adding rt to fc library dependencies
2014-06-14 21:48:28 +04:00
Gandalf-the-Grey
e141fba98d
[gandalf] Fix: failed build on Linux, rt library needed for ntp support.
2014-06-12 02:21:09 -04:00
Daniel Larimer
0c64d208d9
adding ntp support to fc
2014-06-11 15:17:28 -04:00
Daniel Larimer
73dd2d68ea
fix for mac
2014-06-03 11:16:29 -04:00
vogel76
608342e6dc
[BW]: [Fix] Fixed generation of post build step generating code to copy openssl.cnf file. It didn't work in different environment than Keyhotee project (ie bitshare_toolkit).
2014-06-03 15:56:42 +02: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
Eric Frias
072eb63b17
Disable test from compiling by default
2014-05-23 18:09:44 -04:00
Eric Frias
b9050b589d
Merge branch 'phoenix' into tcp_rate_limiting
2014-05-23 18:04:05 -04:00
Nikolai Mushegian
adacbf6d6b
Merge pull request #27 from vikramrajkumar/phoenix
...
Minor cleanup
2014-05-23 17:43:16 -04:00
vogel76
7c3767c208
[BW]: [NIP] Changes to support shared libraries build on linux and further installationpackage configuration
2014-05-23 17:37:20 +02:00
Vikram Rajkumar
9bafe4d64f
Remove unnecessary compiler flags to get rid of Clang warning messages
2014-05-22 04:52:30 -04:00
Eric Frias
5719d28a19
Move/rename git revision info compiled into FC to be more self-explanatory
2014-05-20 18:02:20 -04:00
Eric Frias
06df18c690
More work towards rate-limited TCP sockets
2014-04-17 19:39:15 -04:00
Eric Frias
ce7139c073
Start of work towards throttling TCP connections
2014-04-17 12:00:52 -04:00
vogel76
468d6da711
[BW]: [Ign] Changes needed to support statically built OpenSSL on windows.
2014-04-11 13:32:58 +02:00
vogel76
6c9f758e9c
[BW]: [Ign] Changes to support VS 2013 and boost 1.55
2014-04-10 13:23:34 +02:00
vogel76
1628ce39ae
[BW]: [Ign] Prerequisites for using boost 1.55 and VS 2013.
2014-04-09 12:41:52 +02:00
Eric Frias
88f6ca16e9
Add missing file to build
2014-04-06 19:16:14 -04:00
vogel76
d1ffcebfd7
[BW]: [NIP] Prerequisites for collecting full .pdb list for packaging.
2014-04-01 13:54:57 +02:00
Eric Frias
5543044bd3
Collect time of git commit for display in Keyhotee, add function for pretty-printing times
2014-03-31 16:10:52 -04:00
alt
9561bb6510
add depend lib for libcrypt.a: libdl and libz
2014-03-20 09:37:59 +08:00
dnotestein
e4e99f98d9
changes for installer
2014-03-14 17:14:02 -04:00
Eric Frias
0e6e86f273
Make FC's CMakeLists.txt provide a list of required DLLs to projects that use it
2014-03-14 14:11:56 -04:00
Daniel Larimer
b83a49298e
adding extra to_string
2014-03-11 11:29:29 -04:00
Eric Frias
f98a0d0623
Switch exception handling in win32 to /EHsc
2014-03-08 18:52:18 -05:00
Eric Frias
fdbaf88e5e
Provide a way to intercept Win32 structured exceptions in async tasks
...
Something about the stacks created by boost::context prevents global structured exception handlers
from being called. This allows the user to register a handler which will be called when there
is an unhandled structured exception in async task.
2014-03-08 18:48:19 -05:00
vogel76
07ba2d6d95
[BW]: [Fix] Include directories shall be specified through target_include_directories not just include_directories call.
2014-03-08 03:20:11 +01:00
dnotestein
160b84487b
Disabled armory import code for now to get Bitshares and fc compiling.
2014-02-26 17:24:40 -05:00
BrownBear2
49ff83922b
added romix kdf and cfb for aes
2014-02-26 12:05:17 +01:00
dnotestein
ba9ad0e6e9
Move bad global include that was only included for Linux/Apple to be a private include that works for windows also (so that fc compiles under windows again).
2014-02-20 18:14:04 -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
0843aa6652
adding raw serialization for unordered_map
2014-02-16 01:17:31 -05:00
Daniel Larimer
9392ca2afe
target_compile_options attempts to apply c++ flags to compile c objects
2014-02-14 20:07:39 -05:00
vogel76
259204df22
Merge pull request #7 from HackFisher/phoenix
...
Fix multi find_package change ${Boost_LIBRARIE}
2014-02-13 13:07:52 +01:00
vogel76
8c49a8b887
[BW]: [NIP] Further CMakeLists.txt cleanup to use target_* features.
2014-02-13 12:55:28 +01:00
Daniel Larimer
95c1e07896
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
...
Conflicts:
CMakeLists.txt
2014-02-13 00:21:08 -05:00
Daniel Larimer
4e68f4b1b7
fix build
2014-02-13 00:02:15 -05:00
HackFisher
802812b57e
Fix multi find_package change ${Boost_LIBRARIE}
...
using boost>=1.54 with cmake on windows.
When FIND_PACKAGE(BOOST ...) is run, it overwrites the previous ${Boost_LIBRARIES} with its own required libraries
http://stackoverflow.com/questions/19720639/handling-multiple-find-package-calls-in-cmake
2014-02-13 11:40:47 +08:00
vogel76
7fc529e7f2
[BW]: [NIP] CMakeLists.txt cleanup:
...
- include configuration and compile options are right now target specific and can be automatically propagated for client modules by cmake (previously include paths, compilation settings were copied into every CMakeLists.txt using this module.
- Boost/OpenSSL detection moved to the fc module since really this one needs them. Since these libraries are added to fc target dependencies client modules don't need to know about Boost/OpenSSL usage since these dependencies will be automatically added by cmake.
2014-02-12 12:45:36 +01:00
Daniel Larimer
0c1fa7f54f
changes for compiling with clang++ on OS X
2014-02-11 00:45:47 -05:00
grzegorzs
8ad02176c6
[GS] Implemented lzma compression.
2014-01-24 14:51:35 +01:00
skchaudhari
91d35546fc
"Added code to get the revision of fc repo"
2014-01-12 20:04:29 +05:30
vogel76
59f80e34d2
[BW]: [NIP] Further changes to get to work paths containing unicode characters:
...
- fc::path extended by method toNativeAnsiPath allowing to safely convert current unicode path into its ansi equivalent
- fc::path to_variant uses toNativeAnsiPath method instead of generic_string to avoid loss of data while serializing a path
- fc::mmap_struct_base::open should use toNativeAnsiPath method instead of generic_string to access ansi path
- fc::json::save_to_file should directly pass fc::path to underlying stream instead of generic_string.
2014-01-10 00:05:18 +01:00
vogel76
b8a98f8890
[BW]: [Ign] CMakeLists.txt changes to support Cmake boost configuration.
2013-12-08 01:09:54 +01:00
Daniel Larimer
76b13a741a
adding missing files
2013-11-24 13:00:21 -05:00
Daniel Larimer
28dfa9f02f
remove test exe
2013-11-13 14:51:29 -05:00
dnotestein
2030623243
Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
2013-10-17 22:19:31 -04:00
Daniel Larimer
8b2e54ca8b
compiles on linux
2013-10-14 21:46:23 +04:00
dnotestein
bacf98ddb8
don't try to build salsa.s (assembly language file) on windows, eliminate annoying warnings in optional.hpp
2013-10-10 22:19:01 -04:00
Daniel Larimer
68b9fafe9a
disable padding for aes_encoder and decoder
2013-09-05 22:09:12 -04:00
Daniel Larimer
6a1f42aba0
adding new crypto apis
2013-08-24 04:25:03 -04:00
Daniel Larimer
7bf6374299
MAJOR BUG FIX - fc::usleep causing hang&leak
...
In certain cases when usleep is passed a small value, there is
a race condition that would cause the process to hang and then
when an attempt to quit the thread was made new contexts would
be allocated rapidly filling all available memory.
2013-08-19 14:44:13 -04:00
Daniel Larimer
311a9652d4
bug fixes and tests for aes
2013-08-13 13:57:39 -04:00
Daniel Larimer
d8a047692c
Adding easylzma compression library
2013-08-13 13:28:53 -04:00
Daniel Larimer
e19c3327a0
adding aes encryption and openssl wrapper cleanup
2013-08-13 12:58:55 -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
7b8494d7f8
upgrading to a version of boost that includes boost::atomic and boost::context
2013-08-08 21:31:35 -04:00
Daniel Larimer
8a9d0c9e13
adding ripemd160
2013-07-28 10:49:45 -04:00
Daniel Larimer
29a1346d05
adding uint128 type
2013-07-26 23:20:06 -04:00
Daniel Larimer
0956cd26df
adding std::hash support for fc::array
2013-07-17 15:00:13 -04:00
Daniel Larimer
87542eba25
adding city hash
2013-07-17 11:50:45 -04:00
Daniel Larimer
58d950b56f
Adding mmap_struct & features to fc::array
...
Fixed uninit bug in logger_config
2013-07-03 21:35:30 -04:00