diff options
author | lloyd <[email protected]> | 2014-01-01 21:20:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-01-01 21:20:55 +0000 |
commit | 197dc467dec28a04c3b2f30da7cef122dfbb13e9 (patch) | |
tree | cdbd3ddaec051c72f0a757db461973d90c37b97a /lib/utils/types.h | |
parent | 62faac373c07cfe10bc8c309e89ebdd30d8e5eaa (diff) |
Shuffle things around. Add NIST X.509 test to build.
Diffstat (limited to 'lib/utils/types.h')
-rw-r--r-- | lib/utils/types.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/lib/utils/types.h b/lib/utils/types.h new file mode 100644 index 000000000..f4a2eeacd --- /dev/null +++ b/lib/utils/types.h @@ -0,0 +1,48 @@ +/* +* Low Level Types +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#ifndef BOTAN_TYPES_H__ +#define BOTAN_TYPES_H__ + +#include <botan/build.h> +#include <botan/assert.h> +#include <cstddef> +#include <cstdint> + +/** +* The primary namespace for the botan library +*/ +namespace Botan { + +using std::uint8_t; +using std::uint16_t; +using std::uint32_t; +using std::uint64_t; +using std::size_t; + +typedef uint8_t byte; +typedef uint16_t u16bit; +typedef uint32_t u32bit; +typedef uint64_t u64bit; + +typedef std::int32_t s32bit; + +/** +* A default buffer size; typically a memory page +*/ +static const size_t DEFAULT_BUFFERSIZE = BOTAN_DEFAULT_BUFFER_SIZE; + +} + +namespace Botan_types { + +using Botan::byte; +using Botan::u32bit; + +} + +#endif |