Security Scol plugin
|
Library configuration file. More...
Go to the source code of this file.
Macros | |
#define | CRYPTOPP_NO_GLOBAL_BYTE 1 |
Library byte guard. | |
#define | SW64LIT(x) x##LL |
#define | W64LIT(x) x##ULL |
#define | CRYPTOPP_NATIVE_DWORD_AVAILABLE 1 |
#define | CRYPTOPP_BOOL_SLOW_WORD64 1 |
Typedefs | |
typedef unsigned char | byte |
8-bit unsigned datatype | |
typedef unsigned short | word16 |
16-bit unsigned datatype | |
typedef unsigned int | word32 |
32-bit unsigned datatype | |
typedef signed char | sbyte |
8-bit signed datatype | |
typedef signed short | sword16 |
16-bit signed datatype | |
typedef signed int | sword32 |
32-bit signed datatype | |
typedef signed long long | sword64 |
typedef unsigned long long | word64 |
typedef word64 | lword |
Large word type. | |
typedef word16 | hword |
typedef word32 | word |
typedef word64 | dword |
Variables | |
const lword | LWORD_MAX = W64LIT(0xffffffffffffffff) |
Large word type max value. | |
const unsigned int | WORD_SIZE = sizeof(word) |
Size of a platform word in bytes. | |
const unsigned int | WORD_BITS = WORD_SIZE * 8 |
Size of a platform word in bits. | |
Library configuration file.
config_int.h
provides defines and typedefs for fixed size integers. The library's choices for fixed size integers predates other standard-based integers by about 5 years. After fixed sizes were made standard, the library continued to use its own definitions for compatibility with previous versions of the library.
config.h
was split into components in May 2019 to better integrate with Autoconf and its feature tests. The splitting occurred so users could continue to include config.h
while allowing Autoconf to write new config_asm.h
and new config_cxx.h
using its feature tests.
config.h
rather than config_int.h
directly. Definition in file config_int.h.
#define CRYPTOPP_BOOL_SLOW_WORD64 1 |
Definition at line 231 of file config_int.h.
#define CRYPTOPP_NATIVE_DWORD_AVAILABLE 1 |
Definition at line 212 of file config_int.h.
#define CRYPTOPP_NO_GLOBAL_BYTE 1 |
Library byte guard.
CRYPTOPP_NO_GLOBAL_BYTE indicates byte
is in the Crypto++ namespace.
The Crypto++ byte
was originally in global namespace to avoid ambiguity with other byte typedefs. byte
was moved to CryptoPP namespace at Crypto++ 6.0 due to C++17, std::byte
and potential compile problems.
Definition at line 41 of file config_int.h.
#define SW64LIT | ( | x | ) | x##LL |
Definition at line 151 of file config_int.h.
#define W64LIT | ( | x | ) | x##ULL |
Definition at line 152 of file config_int.h.
typedef unsigned char byte |
8-bit unsigned datatype
The Crypto++ byte
was originally in global namespace to avoid ambiguity with other byte typedefs. byte
was moved to CryptoPP namespace at Crypto++ 6.0 due to C++17, std::byte
and potential compile problems.
Definition at line 56 of file config_int.h.
typedef word64 dword |
Definition at line 234 of file config_int.h.
typedef word16 hword |
Definition at line 232 of file config_int.h.
typedef word64 lword |
Large word type.
lword is a typedef for large word types. It is used for file offsets and such.
Definition at line 158 of file config_int.h.
typedef signed char sbyte |
8-bit signed datatype
The 8-bit signed datatype was added to support constant time implementations for curve25519, X25519 key agreement and ed25519 signatures.
Definition at line 69 of file config_int.h.
typedef signed short sword16 |
16-bit signed datatype
The 32-bit signed datatype was added to support constant time implementations for curve25519, X25519 key agreement and ed25519 signatures.
Definition at line 75 of file config_int.h.
typedef signed int sword32 |
32-bit signed datatype
The 32-bit signed datatype was added to support constant time implementations for curve25519, X25519 key agreement and ed25519 signatures.
Definition at line 81 of file config_int.h.
typedef signed long long sword64 |
Definition at line 149 of file config_int.h.
typedef word32 word |
Definition at line 233 of file config_int.h.
typedef unsigned short word16 |
typedef unsigned int word32 |
typedef unsigned long long word64 |
Definition at line 150 of file config_int.h.
const lword LWORD_MAX = W64LIT(0xffffffffffffffff) |
Large word type max value.
LWORD_MAX is the maximum value for large word types. Since an lword
is an unsigned type, the value is 0xffffffffffffffff
. W64LIT will append the proper suffix.
Definition at line 164 of file config_int.h.
const unsigned int WORD_BITS = WORD_SIZE * 8 |
Size of a platform word in bits.
The size of a platform word, in bits
Definition at line 249 of file config_int.h.
const unsigned int WORD_SIZE = sizeof(word) |
Size of a platform word in bytes.
The size of a platform word, in bytes
Definition at line 245 of file config_int.h.