SmartSnippets DA1459x SDK
crypto_hmac.h
Go to the documentation of this file.
1 
44 #ifndef CRYPTO_HMAC_H_
45 #define CRYPTO_HMAC_H_
46 
47 #include <osal.h>
48 #include <stdint.h>
49 #include <stddef.h>
50 
54 typedef enum {
59 
63 typedef intptr_t crypto_hmac_ctx_t;
64 
140 crypto_hmac_ctx_t crypto_hmac_sha256(const uint8_t *text, size_t text_sz,
141  const uint8_t *key, size_t key_sz,
142  uint8_t *hmac, unsigned int flags,
143  OS_TICK_TIME timeout);
144 
169 void crypto_hmac_sha256_continue(const uint8_t *text, size_t text_sz, crypto_hmac_ctx_t context,
170  unsigned int flags, uint8_t *hmac);
171 #endif /* CRYPTO_HMAC_H_ */
172 
CRYPTO_HMAC_F_TXT
Definition: crypto_hmac.h:57
CRYPTO_HMAC_OPTIONS
CRYPTO_HMAC_OPTIONS
Options passed in flags of the HMAC API.
Definition: crypto_hmac.h:54
crypto_hmac_sha256
crypto_hmac_ctx_t crypto_hmac_sha256(const uint8_t *text, size_t text_sz, const uint8_t *key, size_t key_sz, uint8_t *hmac, unsigned int flags, OS_TICK_TIME timeout)
Calculate the HMAC of a message and a key using SHA256 for hashing.
crypto_hmac_sha256_continue
void crypto_hmac_sha256_continue(const uint8_t *text, size_t text_sz, crypto_hmac_ctx_t context, unsigned int flags, uint8_t *hmac)
Continue the HMAC calculation.
osal.h
OS abstraction layer API.
CRYPTO_HMAC_NO_OPTION
Definition: crypto_hmac.h:55
CRYPTO_HMAC_I_TXT
Definition: crypto_hmac.h:56
crypto_hmac_ctx_t
intptr_t crypto_hmac_ctx_t
HMAC context type.
Definition: crypto_hmac.h:63