From e1ca9e35b50d05c292c95b264689a37182f3c1bf Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 13 Jul 2013 08:42:47 -0700 Subject: [PATCH] Add module beast_crypto --- Builds/QtCreator/rippled.pro | 1 + Builds/VisualStudio2012/RippleD.vcxproj | 1 + .../VisualStudio2012/RippleD.vcxproj.filters | 3 ++ SConstruct | 3 +- .../Builds/VisualStudio2012/beast.vcxproj | 22 ++++++++- .../VisualStudio2012/beast.vcxproj.filters | 21 ++++++++ .../modules/beast_crypto/beast_crypto.cpp | 27 ++++++++++ .../beast/modules/beast_crypto/beast_crypto.h | 49 +++++++++++++++++++ .../modules/beast_crypto/beast_crypto.mm | 20 ++++++++ .../beast_crypto/math/beast_UnsignedInteger.h | 29 +++++++++++ 10 files changed, 174 insertions(+), 2 deletions(-) create mode 100644 Subtrees/beast/modules/beast_crypto/beast_crypto.cpp create mode 100644 Subtrees/beast/modules/beast_crypto/beast_crypto.h create mode 100644 Subtrees/beast/modules/beast_crypto/beast_crypto.mm create mode 100644 Subtrees/beast/modules/beast_crypto/math/beast_UnsignedInteger.h diff --git a/Builds/QtCreator/rippled.pro b/Builds/QtCreator/rippled.pro index 946376b4a8..89ebd28df4 100644 --- a/Builds/QtCreator/rippled.pro +++ b/Builds/QtCreator/rippled.pro @@ -62,6 +62,7 @@ UI_HEADERS_DIR += ../../modules/ripple_basics SOURCES += \ ../../Subtrees/beast/modules/beast_basics/beast_basics.cpp \ ../../Subtrees/beast/modules/beast_core/beast_core.cpp \ + ../../Subtrees/beast/modules/beast_crypto/beast_crypto.cpp \ ../../modules/ripple_app/ripple_app_pt1.cpp \ ../../modules/ripple_app/ripple_app_pt2.cpp \ ../../modules/ripple_app/ripple_app_pt3.cpp \ diff --git a/Builds/VisualStudio2012/RippleD.vcxproj b/Builds/VisualStudio2012/RippleD.vcxproj index ab65409358..89dc69643e 100644 --- a/Builds/VisualStudio2012/RippleD.vcxproj +++ b/Builds/VisualStudio2012/RippleD.vcxproj @@ -1032,6 +1032,7 @@ + true true diff --git a/Builds/VisualStudio2012/RippleD.vcxproj.filters b/Builds/VisualStudio2012/RippleD.vcxproj.filters index e5431a02ad..b1d09786cb 100644 --- a/Builds/VisualStudio2012/RippleD.vcxproj.filters +++ b/Builds/VisualStudio2012/RippleD.vcxproj.filters @@ -897,6 +897,9 @@ [1] Ripple\ripple_core\validator + + [0] Subtrees\beast + diff --git a/SConstruct b/SConstruct index 5f011bd8e3..903d5bf877 100644 --- a/SConstruct +++ b/SConstruct @@ -119,8 +119,9 @@ INCLUDE_PATHS = [ ] COMPILED_FILES = [ - 'Subtrees/beast/modules/beast_core/beast_core.cpp', 'Subtrees/beast/modules/beast_basics/beast_basics.cpp', + 'Subtrees/beast/modules/beast_core/beast_core.cpp', + 'Subtrees/beast/modules/beast_crypto/beast_crypto.cpp', 'modules/ripple_app/ripple_app_pt1.cpp', 'modules/ripple_app/ripple_app_pt2.cpp', 'modules/ripple_app/ripple_app_pt3.cpp', diff --git a/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj b/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj index 003059c69e..0664d04e9a 100644 --- a/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj +++ b/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj @@ -23,7 +23,18 @@ - + + true + true + true + true + + + true + true + true + true + true true @@ -61,6 +72,12 @@ true + + true + true + true + true + @@ -227,6 +244,8 @@ + + @@ -892,6 +911,7 @@ true true + diff --git a/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj.filters b/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj.filters index 2b21ca3516..9d1862dde6 100644 --- a/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj.filters +++ b/Subtrees/beast/Builds/VisualStudio2012/beast.vcxproj.filters @@ -30,6 +30,12 @@ + + beast_crypto + + + beast_basics + @@ -113,6 +119,12 @@ {69e28551-92ea-420b-a465-75ed248e3b59} + + {62b1f8e3-79e4-46cc-b3fb-a12754aef249} + + + {1170f2bc-2456-410a-ab2b-c45f6ed37b9e} + @@ -605,6 +617,12 @@ beast_core\diagnostic + + beast_crypto\math + + + beast_crypto + @@ -943,6 +961,9 @@ beast_core\diagnostic + + beast_crypto + diff --git a/Subtrees/beast/modules/beast_crypto/beast_crypto.cpp b/Subtrees/beast/modules/beast_crypto/beast_crypto.cpp new file mode 100644 index 0000000000..da4c6d1355 --- /dev/null +++ b/Subtrees/beast/modules/beast_crypto/beast_crypto.cpp @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +/* + This file is part of Beast: https://github.com/vinniefalco/Beast + Copyright 2013, Vinnie Falco + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include "BeastConfig.h" + +#include "beast_crypto.h" + +namespace beast +{ + +} diff --git a/Subtrees/beast/modules/beast_crypto/beast_crypto.h b/Subtrees/beast/modules/beast_crypto/beast_crypto.h new file mode 100644 index 0000000000..e5bd96e631 --- /dev/null +++ b/Subtrees/beast/modules/beast_crypto/beast_crypto.h @@ -0,0 +1,49 @@ +//------------------------------------------------------------------------------ +/* + This file is part of Beast: https://github.com/vinniefalco/Beast + Copyright 2013, Vinnie Falco + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#ifndef BEAST_BEAST_CRYPTO_H_INCLUDED +#define BEAST_BEAST_CRYPTO_H_INCLUDED + +//------------------------------------------------------------------------------ + +/* If you fail to make sure that all your compile units are building Beast with + the same set of option flags, then there's a risk that different compile + units will treat the classes as having different memory layouts, leading to + very nasty memory corruption errors when they all get linked together. + That's why it's best to always include the BeastConfig.h file before any + beast headers. +*/ +#ifndef BEAST_BEASTCONFIG_H_INCLUDED +# ifdef _MSC_VER +# pragma message ("Have you included your BeastConfig.h file before including the Beast headers?") +# else +# warning "Have you included your BeastConfig.h file before including the Beast headers?" +# endif +#endif + +//------------------------------------------------------------------------------ + +namespace beast +{ + +#include "math/beast_UnsignedInteger.h" + +} + +#endif diff --git a/Subtrees/beast/modules/beast_crypto/beast_crypto.mm b/Subtrees/beast/modules/beast_crypto/beast_crypto.mm new file mode 100644 index 0000000000..182863c7f4 --- /dev/null +++ b/Subtrees/beast/modules/beast_crypto/beast_crypto.mm @@ -0,0 +1,20 @@ +//------------------------------------------------------------------------------ +/* + This file is part of Beast: https://github.com/vinniefalco/Beast + Copyright 2013, Vinnie Falco + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#include "beast_crypto.cpp" diff --git a/Subtrees/beast/modules/beast_crypto/math/beast_UnsignedInteger.h b/Subtrees/beast/modules/beast_crypto/math/beast_UnsignedInteger.h new file mode 100644 index 0000000000..0aa0650cd7 --- /dev/null +++ b/Subtrees/beast/modules/beast_crypto/math/beast_UnsignedInteger.h @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +/* + This file is part of Beast: https://github.com/vinniefalco/Beast + Copyright 2013, Vinnie Falco + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ +//============================================================================== + +#ifndef BEAST_UNSIGNEDINTEGER_H_INCLUDED +#define BEAST_UNSIGNEDINTEGER_H_INCLUDED + +template +class UnsignedInteger +{ +public: +}; + +#endif