Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
sha1.h
Go to the documentation of this file.
1 /*===-- primitives/hash_functions/sha1.h ---------------*- PUBLIC -*- H -*-===*/
8 /*===----------------------------------------------------------------------===*/
9 
10 #ifndef ORDO_SHA1_H
11 #define ORDO_SHA1_H
12 
14 #include "ordo/common/interface.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*===----------------------------------------------------------------------===*/
24 
25 #define sha1_init ordo_sha1_init
26 #define sha1_update ordo_sha1_update
27 #define sha1_final ordo_sha1_final
28 #define sha1_query ordo_sha1_query
29 #define sha1_bsize ordo_sha1_bsize
30 
31 /*===----------------------------------------------------------------------===*/
32 
37 ORDO_PUBLIC
38 int sha1_init(struct SHA1_STATE *state,
39  const void *params);
40 
43 ORDO_PUBLIC
44 void sha1_update(struct SHA1_STATE *state,
45  const void *buffer,
46  size_t len);
47 
50 ORDO_PUBLIC
51 void sha1_final(struct SHA1_STATE *state,
52  void *digest);
53 
56 ORDO_PUBLIC
57 size_t sha1_query(int query, size_t value);
58 
65 ORDO_PUBLIC
66 size_t sha1_bsize(void);
67 
68 /*===----------------------------------------------------------------------===*/
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif
ORDO_PUBLIC int sha1_init(struct SHA1_STATE *state, const void *params)
Definition: sha1.c:34
Abstraction Layer.
ORDO_PUBLIC void sha1_final(struct SHA1_STATE *state, void *digest)
Definition: sha1.c:80
ORDO_PUBLIC size_t sha1_query(int query, size_t value)
ORDO_PUBLIC size_t sha1_bsize(void)
ORDO_PUBLIC void sha1_update(struct SHA1_STATE *state, const void *buffer, size_t len)
Definition: sha1.c:48