SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslPSAConsumerPBKDF2.h
Go to the documentation of this file.
1
37#ifndef SHARKSSL_PSA_CONSUMER_PBKDF2_H
38#define SHARKSSL_PSA_CONSUMER_PBKDF2_H
39
40#include "SharkSSL.h"
41
42#if (!SHARKSSL_PSA_CONSUMER)
43#error SharkSslPSAConsumerPBKDF2.h requires SHARKSSL_PSA_CONSUMER
44#endif
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
55SHARKSSL_API int SharkSslPSAPBKDF2_derive(U8 *output, const U8 *password, const U8 *salt,
56 psa_algorithm_t alg, U32 passwordLen,
57 U32 saltLen, U32 iterations, U16 outputLen);
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif
TLS objects, certificate/session operations, and public-key interfaces.
SHARKSSL_API int SharkSslPSAPBKDF2_derive(U8 *output, const U8 *password, const U8 *salt, psa_algorithm_t alg, U32 passwordLen, U32 saltLen, U32 iterations, U16 outputLen)
Derive bytes with PSA PBKDF2-HMAC or PBKDF2-AES-CMAC-PRF-128.
uint32_t psa_algorithm_t
Definition: crypto.h:58