hmac.h
1 #ifndef HMAC_H
2 #define HMAC_H 1
3 
4 
5 /* ========================================================================== */
6 /* Include files */
7 
8 
9 /*! \addtogroup HMAC */
10 /*! @{ */
11 
12 
13 /* ========================================================================== */
14 /* Constants */
15 
16 /*! \name Lenght of message authentication codes */
17 /*! @{ */
18 #define HMAC_SHA1_160_LEN (size_t) 20 /*!< \brief 160 bit */
19 #define HMAC_SHA2_256_LEN (size_t) 32 /*!< \brief 256 bit */
20 /*! @} */
21 
22 
23 /*! @} */
24 
25 
26 /* ========================================================================== */
27 /* Function prototypes */
28 
29 int hmac_sha1_160(const char*, size_t, const char*, size_t,
30  unsigned char*);
31 int hmac_sha2_256(const char*, size_t, const char*, size_t,
32  unsigned char*);
33 void hmac_init(void);
34 void hmac_exit(void);
35 
36 
37 #endif /* HMAC_H */
38 
39 /* EOF */
hmac_sha1_160
int hmac_sha1_160(const char *, size_t, const char *, size_t, unsigned char *)
Message Authentication Code based on SHA1-160 hash algorithm.
Definition: hmac.c:224
hmac_exit
void hmac_exit(void)
Shutdown HMAC module.
Definition: hmac.c:269
hmac_sha2_256
int hmac_sha2_256(const char *, size_t, const char *, size_t, unsigned char *)
Message Authentication Code based on SHA2-256 hash algorithm.
Definition: hmac.c:250
hmac_init
void hmac_init(void)
Initialize HMAC module.
Definition: hmac.c:260

Generated at 2024-04-27 using  doxygen