SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslPSAConsumerHash.h
Go to the documentation of this file.
1
37
#ifndef SHARKSSL_PSA_CONSUMER_HASH_H
38
#define SHARKSSL_PSA_CONSUMER_HASH_H
39
40
#include "
SharkSSL.h
"
41
42
#if (!SHARKSSL_PSA_CONSUMER)
43
#error SharkSslPSAConsumerHash.h requires SHARKSSL_PSA_CONSUMER
44
#endif
45
46
#ifdef __cplusplus
47
extern
"C"
{
48
#endif
49
53
SHARKSSL_API
int
SharkSslPSAHash_compute
(U8 *digest, U16 digestSize, U16 *digestLen,
54
const
U8 *data, U32 dataLen,
psa_algorithm_t
algorithm);
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
SharkSSL.h
TLS objects, certificate/session operations, and public-key interfaces.
SharkSslPSAHash_compute
SHARKSSL_API int SharkSslPSAHash_compute(U8 *digest, U16 digestSize, U16 *digestLen, const U8 *data, U32 dataLen, psa_algorithm_t algorithm)
One-shot SHA3-224/256/384/512 or fixed SHAKE256-512 through PSA.
psa_algorithm_t
uint32_t psa_algorithm_t
Definition:
crypto.h:58
inc
psa-consumer
SharkSslPSAConsumerHash.h
SharkSSL
C/C++ reference | Doxygen 1.9.4