mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Add module beast_crypto
This commit is contained in:
@@ -62,6 +62,7 @@ UI_HEADERS_DIR += ../../modules/ripple_basics
|
|||||||
SOURCES += \
|
SOURCES += \
|
||||||
../../Subtrees/beast/modules/beast_basics/beast_basics.cpp \
|
../../Subtrees/beast/modules/beast_basics/beast_basics.cpp \
|
||||||
../../Subtrees/beast/modules/beast_core/beast_core.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_pt1.cpp \
|
||||||
../../modules/ripple_app/ripple_app_pt2.cpp \
|
../../modules/ripple_app/ripple_app_pt2.cpp \
|
||||||
../../modules/ripple_app/ripple_app_pt3.cpp \
|
../../modules/ripple_app/ripple_app_pt3.cpp \
|
||||||
|
|||||||
@@ -1032,6 +1032,7 @@
|
|||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\Subtrees\beast\modules\beast_basics\beast_basics.cpp" />
|
<ClCompile Include="..\..\Subtrees\beast\modules\beast_basics\beast_basics.cpp" />
|
||||||
<ClCompile Include="..\..\Subtrees\beast\modules\beast_core\beast_core.cpp" />
|
<ClCompile Include="..\..\Subtrees\beast\modules\beast_core\beast_core.cpp" />
|
||||||
|
<ClCompile Include="..\..\Subtrees\beast\modules\beast_crypto\beast_crypto.cpp" />
|
||||||
<ClCompile Include="..\..\Subtrees\leveldb\db\builder.cc">
|
<ClCompile Include="..\..\Subtrees\leveldb\db\builder.cc">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
|
|||||||
@@ -897,6 +897,9 @@
|
|||||||
<ClCompile Include="..\..\modules\ripple_core\validator\ripple_StringsValidatorSource.cpp">
|
<ClCompile Include="..\..\modules\ripple_core\validator\ripple_StringsValidatorSource.cpp">
|
||||||
<Filter>[1] Ripple\ripple_core\validator</Filter>
|
<Filter>[1] Ripple\ripple_core\validator</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\Subtrees\beast\modules\beast_crypto\beast_crypto.cpp">
|
||||||
|
<Filter>[0] Subtrees\beast</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\..\Subtrees\sqlite\sqlite3.h">
|
<ClInclude Include="..\..\Subtrees\sqlite\sqlite3.h">
|
||||||
|
|||||||
@@ -119,8 +119,9 @@ INCLUDE_PATHS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
COMPILED_FILES = [
|
COMPILED_FILES = [
|
||||||
'Subtrees/beast/modules/beast_core/beast_core.cpp',
|
|
||||||
'Subtrees/beast/modules/beast_basics/beast_basics.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_pt1.cpp',
|
||||||
'modules/ripple_app/ripple_app_pt2.cpp',
|
'modules/ripple_app/ripple_app_pt2.cpp',
|
||||||
'modules/ripple_app/ripple_app_pt3.cpp',
|
'modules/ripple_app/ripple_app_pt3.cpp',
|
||||||
|
|||||||
@@ -23,7 +23,18 @@
|
|||||||
<None Include="..\..\.gitignore" />
|
<None Include="..\..\.gitignore" />
|
||||||
<None Include="..\..\CodingStyle.md" />
|
<None Include="..\..\CodingStyle.md" />
|
||||||
<None Include="..\..\Doxyfile" />
|
<None Include="..\..\Doxyfile" />
|
||||||
<None Include="..\..\modules\beast_core\beast_core.mm" />
|
<None Include="..\..\modules\beast_basics\beast_basics.mm">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
|
</None>
|
||||||
|
<None Include="..\..\modules\beast_core\beast_core.mm">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
|
</None>
|
||||||
<None Include="..\..\modules\beast_core\native\beast_mac_Files.mm">
|
<None Include="..\..\modules\beast_core\native\beast_mac_Files.mm">
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||||
@@ -61,6 +72,12 @@
|
|||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
</None>
|
</None>
|
||||||
<None Include="..\..\modules\beast_core\zip\zlib\README" />
|
<None Include="..\..\modules\beast_core\zip\zlib\README" />
|
||||||
|
<None Include="..\..\modules\beast_crypto\beast_crypto.mm">
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
|
||||||
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
|
</None>
|
||||||
<None Include="..\..\README.md" />
|
<None Include="..\..\README.md" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -227,6 +244,8 @@
|
|||||||
<ClInclude Include="..\..\modules\beast_core\zip\zlib\zconf.in.h" />
|
<ClInclude Include="..\..\modules\beast_core\zip\zlib\zconf.in.h" />
|
||||||
<ClInclude Include="..\..\modules\beast_core\zip\zlib\zlib.h" />
|
<ClInclude Include="..\..\modules\beast_core\zip\zlib\zlib.h" />
|
||||||
<ClInclude Include="..\..\modules\beast_core\zip\zlib\zutil.h" />
|
<ClInclude Include="..\..\modules\beast_core\zip\zlib\zutil.h" />
|
||||||
|
<ClInclude Include="..\..\modules\beast_crypto\beast_crypto.h" />
|
||||||
|
<ClInclude Include="..\..\modules\beast_crypto\math\beast_UnsignedInteger.h" />
|
||||||
<ClInclude Include="BeastConfig.h" />
|
<ClInclude Include="BeastConfig.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -892,6 +911,7 @@
|
|||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\modules\beast_crypto\beast_crypto.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Text Include="..\..\TODO.txt" />
|
<Text Include="..\..\TODO.txt" />
|
||||||
|
|||||||
@@ -30,6 +30,12 @@
|
|||||||
<None Include="..\..\Doxyfile" />
|
<None Include="..\..\Doxyfile" />
|
||||||
<None Include="..\..\.gitattributes" />
|
<None Include="..\..\.gitattributes" />
|
||||||
<None Include="..\..\.gitignore" />
|
<None Include="..\..\.gitignore" />
|
||||||
|
<None Include="..\..\modules\beast_crypto\beast_crypto.mm">
|
||||||
|
<Filter>beast_crypto</Filter>
|
||||||
|
</None>
|
||||||
|
<None Include="..\..\modules\beast_basics\beast_basics.mm">
|
||||||
|
<Filter>beast_basics</Filter>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="beast_core">
|
<Filter Include="beast_core">
|
||||||
@@ -113,6 +119,12 @@
|
|||||||
<Filter Include="beast_core\diagnostic">
|
<Filter Include="beast_core\diagnostic">
|
||||||
<UniqueIdentifier>{69e28551-92ea-420b-a465-75ed248e3b59}</UniqueIdentifier>
|
<UniqueIdentifier>{69e28551-92ea-420b-a465-75ed248e3b59}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="beast_crypto">
|
||||||
|
<UniqueIdentifier>{62b1f8e3-79e4-46cc-b3fb-a12754aef249}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="beast_crypto\math">
|
||||||
|
<UniqueIdentifier>{1170f2bc-2456-410a-ab2b-c45f6ed37b9e}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\..\modules\beast_core\beast_core.h">
|
<ClInclude Include="..\..\modules\beast_core\beast_core.h">
|
||||||
@@ -605,6 +617,12 @@
|
|||||||
<ClInclude Include="..\..\modules\beast_core\diagnostic\beast_UnitTest.h">
|
<ClInclude Include="..\..\modules\beast_core\diagnostic\beast_UnitTest.h">
|
||||||
<Filter>beast_core\diagnostic</Filter>
|
<Filter>beast_core\diagnostic</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\modules\beast_crypto\math\beast_UnsignedInteger.h">
|
||||||
|
<Filter>beast_crypto\math</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\modules\beast_crypto\beast_crypto.h">
|
||||||
|
<Filter>beast_crypto</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\..\modules\beast_core\beast_core.cpp">
|
<ClCompile Include="..\..\modules\beast_core\beast_core.cpp">
|
||||||
@@ -943,6 +961,9 @@
|
|||||||
<ClCompile Include="..\..\modules\beast_core\diagnostic\beast_UnitTest.cpp">
|
<ClCompile Include="..\..\modules\beast_core\diagnostic\beast_UnitTest.cpp">
|
||||||
<Filter>beast_core\diagnostic</Filter>
|
<Filter>beast_core\diagnostic</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\modules\beast_crypto\beast_crypto.cpp">
|
||||||
|
<Filter>beast_crypto</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Text Include="..\..\TODO.txt" />
|
<Text Include="..\..\TODO.txt" />
|
||||||
|
|||||||
27
Subtrees/beast/modules/beast_crypto/beast_crypto.cpp
Normal file
27
Subtrees/beast/modules/beast_crypto/beast_crypto.cpp
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
This file is part of Beast: https://github.com/vinniefalco/Beast
|
||||||
|
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
|
||||||
|
|
||||||
|
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
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
49
Subtrees/beast/modules/beast_crypto/beast_crypto.h
Normal file
49
Subtrees/beast/modules/beast_crypto/beast_crypto.h
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
This file is part of Beast: https://github.com/vinniefalco/Beast
|
||||||
|
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
|
||||||
|
|
||||||
|
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
|
||||||
20
Subtrees/beast/modules/beast_crypto/beast_crypto.mm
Normal file
20
Subtrees/beast/modules/beast_crypto/beast_crypto.mm
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
This file is part of Beast: https://github.com/vinniefalco/Beast
|
||||||
|
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
|
||||||
|
|
||||||
|
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"
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
This file is part of Beast: https://github.com/vinniefalco/Beast
|
||||||
|
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
|
||||||
|
|
||||||
|
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 <int Bytes>
|
||||||
|
class UnsignedInteger
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user