SHA-1 interface definition. More...

Detailed Description

SHA-1 interface definition.

Author
Wei Dai and others
Oliver Hahm olive.nosp@m.r.ha.nosp@m.hm@in.nosp@m.ria..nosp@m.fr

Definition in file sha1.h.

#include <stdint.h>
+ Include dependency graph for sha1.h:

Go to the source code of this file.

Data Structures

struct  sha1_context
 SHA-1 algorithm context. More...
 

Macros

#define SHA1_DIGEST_LENGTH   (20)
 Length of SHA-1 digests in byte.
 
#define SHA1_BLOCK_LENGTH   (64)
 Length of SHA-1 block in byte.
 

Functions

void sha1_init (sha1_context *ctx)
 Initialize SHA-1 message digest context. More...
 
void sha1_update (sha1_context *ctx, const void *data, size_t len)
 Update the SHA-1 context with a portion of the message being hashed. More...
 
void sha1_final (sha1_context *ctx, void *digest)
 Finalizes the SHA-1 message digest. More...
 
void sha1 (void *digest, const void *data, size_t len)
 Calculate a SHA1 hash from the given data. More...
 
void sha1_init_hmac (sha1_context *ctx, const void *key, size_t key_length)
 Initialize SHA-1 message digest context with MAC. More...
 
void sha1_final_hmac (sha1_context *ctx, void *digest)
 Finalizes the SHA-1 message digest with MAC. More...