From d8bec0a43cd46d9560aeb5367576396cc5055e61 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/VisualStudio2012/beast.vcxproj | 22 ++++++++- Builds/VisualStudio2012/beast.vcxproj.filters | 21 ++++++++ modules/beast_crypto/beast_crypto.cpp | 27 ++++++++++ modules/beast_crypto/beast_crypto.h | 49 +++++++++++++++++++ modules/beast_crypto/beast_crypto.mm | 20 ++++++++ .../beast_crypto/math/beast_UnsignedInteger.h | 29 +++++++++++ 6 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 modules/beast_crypto/beast_crypto.cpp create mode 100644 modules/beast_crypto/beast_crypto.h create mode 100644 modules/beast_crypto/beast_crypto.mm create mode 100644 modules/beast_crypto/math/beast_UnsignedInteger.h diff --git a/Builds/VisualStudio2012/beast.vcxproj b/Builds/VisualStudio2012/beast.vcxproj index 003059c69..0664d04e9 100644 --- a/Builds/VisualStudio2012/beast.vcxproj +++ b/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/Builds/VisualStudio2012/beast.vcxproj.filters b/Builds/VisualStudio2012/beast.vcxproj.filters index 2b21ca351..9d1862dde 100644 --- a/Builds/VisualStudio2012/beast.vcxproj.filters +++ b/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/modules/beast_crypto/beast_crypto.cpp b/modules/beast_crypto/beast_crypto.cpp new file mode 100644 index 000000000..da4c6d135 --- /dev/null +++ b/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/modules/beast_crypto/beast_crypto.h b/modules/beast_crypto/beast_crypto.h new file mode 100644 index 000000000..e5bd96e63 --- /dev/null +++ b/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/modules/beast_crypto/beast_crypto.mm b/modules/beast_crypto/beast_crypto.mm new file mode 100644 index 000000000..182863c7f --- /dev/null +++ b/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/modules/beast_crypto/math/beast_UnsignedInteger.h b/modules/beast_crypto/math/beast_UnsignedInteger.h new file mode 100644 index 000000000..0aa0650cd --- /dev/null +++ b/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