Macros | Enumerations | Functions
hmac.c File Reference

Keyed-Hash Message Authentication Code. More...

Go to the source code of this file.

Macros

#define MAIN_ERR_PREFIX   "HMAC: "
 Message prefix for HMAC module.
 

Enumerations

enum  hmac_alg { HMAC_ALG_SHA1_160, HMAC_ALG_SHA2_256 }
 

Functions

int hmac_sha1_160 (const char *text, size_t text_len, const char *key, size_t key_len, unsigned char *mac)
 Message Authentication Code based on SHA1-160 hash algorithm. More...
 
int hmac_sha2_256 (const char *text, size_t text_len, const char *key, size_t key_len, unsigned char *mac)
 Message Authentication Code based on SHA2-256 hash algorithm. More...
 
void hmac_init (void)
 Initialize HMAC module.
 
void hmac_exit (void)
 Shutdown HMAC module.
 

Detailed Description

Keyed-Hash Message Authentication Code.

Copyright (c) 2012-2022 by the developers. See the LICENSE file for details.

If nothing else is specified, function return zero to indicate success and a negative value to indicate an error.

Definition in file hmac.c.


Generated at 2024-04-27 using  doxygen