Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
hmac.h
Go to the documentation of this file.
1 /*===-- auth/hmac.h ------------------------------------*- PUBLIC -*- H -*-===*/
10 /*===----------------------------------------------------------------------===*/
11 
12 #ifndef ORDO_HMAC_H
13 #define ORDO_HMAC_H
14 
16 #include "ordo/common/interface.h"
19 #include "ordo/digest/digest.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /*===----------------------------------------------------------------------===*/
26 
27 #define hmac_init ordo_hmac_init
28 #define hmac_update ordo_hmac_update
29 #define hmac_final ordo_hmac_final
30 #define hmac_bsize ordo_hmac_bsize
31 
32 /*===----------------------------------------------------------------------===*/
33 
47 ORDO_PUBLIC
48 int hmac_init(struct HMAC_CTX *ctx,
49  const void *key, size_t key_len,
50  prim_t hash, const void *params);
51 
61 ORDO_PUBLIC
62 void hmac_update(struct HMAC_CTX *ctx,
63  const void *in, size_t in_len);
64 
75 ORDO_PUBLIC
76 int hmac_final(struct HMAC_CTX *ctx, void *fingerprint);
77 
84 ORDO_PUBLIC
85 size_t hmac_bsize(void);
86 
87 /*===----------------------------------------------------------------------===*/
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif
int prim_t
Data type which holds a primitive identifier.
Definition: identification.h:58
Module.
ORDO_PUBLIC size_t hmac_bsize(void)
Definition: features.c:345
ORDO_PUBLIC int hmac_final(struct HMAC_CTX *ctx, void *fingerprint)
Definition: hmac.c:62
ORDO_PUBLIC int hmac_init(struct HMAC_CTX *ctx, const void *key, size_t key_len, prim_t hash, const void *params)
Definition: hmac.c:21
ORDO_PUBLIC void hmac_update(struct HMAC_CTX *ctx, const void *in, size_t in_len)
Definition: hmac.c:56