Platform-backed symmetric cryptography primitives. More...
#include <Cryptography.h>
Classes | |
| struct | Aead |
| struct | Cipher |
| struct | Features |
| struct | Hkdf |
| struct | Hmac |
| struct | MacResult |
| struct | Random |
Public Types | |
| enum class | Backend : uint8_t { Native , OpenSSL } |
| Selects the provider used by a cryptographic session. More... | |
| enum class | HashType : uint8_t { SHA256 , SHA384 } |
| enum class | AeadType : uint8_t { AES128GCM , AES256GCM } |
| enum class | CipherType : uint8_t { AES128CBCPKCS7 , AES256CBCPKCS7 } |
Static Public Member Functions | |
| static Result | queryFeatures (Features &outFeatures) |
| Query which primitives are available on the default native backend. | |
| static Result | queryFeatures (Backend backend, Features &outFeatures) |
| Query which primitives are available on a specific backend. | |
Platform-backed symmetric cryptography primitives.
The native backend uses operating system cryptographic primitives and keeps the core interface synchronous, allocation-free and span-based. Linux can explicitly select a runtime-loaded OpenSSL 3 backend, whose internal allocations are outside the library's control. Apple GCM is narrowly composed over CommonCrypto AES.
|
strong |
Selects the provider used by a cryptographic session.
Query which primitives are available on a specific backend.
|
static |
Query which primitives are available on the default native backend.