58QSC_CPLUSPLUS_ENABLED_START
95#define QSC_SCB_256_SEED_SIZE 32U
101#define QSC_SCB_512_SEED_SIZE 64U
107#define QSC_SCB_L2CACHE_DEFAULT_SIZE (1024ULL * 256ULL)
113#define QSC_SCB_MEMORY_COST_SIZE (1024ULL * 1024ULL)
119#define QSC_SCB_MEMORY_MAXIMUM 128U
125#define QSC_SCB_MEMORY_MINIMUM 1U
131#define QSC_SCB_CPU_MINIMUM 1U
137#define QSC_SCB_CPU_MAXIMUM 1000U
194QSC_CPLUSPLUS_ENABLED_END
Contains common definitions for the Quantum Secure Cryptographic (QSC) library.
#define QSC_EXPORT_API
API export macro for Microsoft compilers when importing from a DLL.
Definition qsccommon.h:645
QSC_EXPORT_API bool qsc_scb_generate(qsc_scb_state *ctx, uint8_t *output, size_t otplen)
[void] Generate pseudo-random bytes using the random provider.
Definition scb.c:161
QSC_EXPORT_API void qsc_scb_initialize(qsc_scb_state *ctx, const uint8_t *seed, size_t seedlen, const uint8_t *info, size_t infolen, size_t cpucost, size_t memcost)
[void] Initialize the pseudo-random provider state with a seed and optional personalization string.
Definition scb.c:119
QSC_EXPORT_API void qsc_scb_dispose(qsc_scb_state *ctx)
[void] Dispose of the DRBG state.
Definition scb.c:105
QSC_EXPORT_API void qsc_scb_update(qsc_scb_state *ctx, const uint8_t *seed, size_t seedlen)
[void] Update the random provider with new keying material.
Definition scb.c:224
#define QSC_SCB_512_SEED_SIZE
The SCB-512 seed size.
Definition scb.h:101
SHA3 family of hash functions.
qsc_keccak_rate
The Keccak rate; determines which security strength is used by the function, 128, 256,...
Definition sha3.h:267
The SCB state structure.
Definition scb.h:146
size_t memc
Definition scb.h:149
uint8_t ckey[QSC_SCB_512_SEED_SIZE]
Definition scb.h:147
size_t klen
Definition scb.h:150
qsc_keccak_rate rate
Definition scb.h:151
size_t cpuc
Definition scb.h:148