30#ifndef SOPC_HASH_BASED_CRYPTO_H_
31#define SOPC_HASH_BASED_CRYPTO_H_
84 size_t iteration_count,
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
void SOPC_HashBasedCrypto_Config_Free(SOPC_HashBasedCrypto_Config *cfg)
Free the internal configuration.
SOPC_ReturnStatus SOPC_HashBasedCrypto_Config_Create(SOPC_HashBasedCrypto_Config **cfg)
Create the internal configuration structure.
SOPC_ReturnStatus SOPC_HashBasedCrypto_Config_PBKDF2(SOPC_HashBasedCrypto_Config *config, const SOPC_ByteString *pSalt, size_t iteration_count, size_t lenOutput)
Fills the configuration structure for SOPC_HashBasedCrypto_PBKDF2_HMAC_SHA256 algorithm.
SOPC_ReturnStatus SOPC_HashBasedCrypto_Run(const SOPC_HashBasedCrypto_Config *config, const SOPC_ByteString *pSecret, SOPC_ByteString **ppOutput)
Function that allows to execute a hashing mechanism.
SOPC_HashBasedCrypto_Algo
Defines the supported algorithms for user authentication.
Definition sopc_hash_based_crypto.h:42
@ SOPC_HashBasedCrypto_PBKDF2_HMAC_SHA256
Definition sopc_hash_based_crypto.h:43
struct SOPC_HashBasedCrypto_Config SOPC_HashBasedCrypto_Config
cryptographic structure to configure the algorithm used.
Definition sopc_hash_based_crypto.h:49
S2OPC memory allocation wrappers.
SecretBuffer (mangled key) and ExposedBuffer (contiguous deciphered buffered) APIs.
This structure provides string encapsulation.
Definition sopc_builtintypes.h:148