Classes | Macros | Typedefs | Functions
SHA1.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for SHA1.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SHA_CTX_S
 

Macros

#define SHA1_DIGEST_LENGTH   (160/8)
 

Typedefs

typedef struct SHA_CTX_S SHA_CTX
 

Functions

int SHA1_Final (unsigned char *md, SHA_CTX *ctx)
 
int SHA1_Init (SHA_CTX *ctx)
 
int SHA1_Update (SHA_CTX *ctx, const void *data, size_t len)
 

Macro Definition Documentation

#define SHA1_DIGEST_LENGTH   (160/8)

SHA-1 Digest Length (number of bytes in SHA1)

Definition at line 53 of file SHA1.h.

Typedef Documentation

typedef struct SHA_CTX_S SHA_CTX

Function Documentation

int SHA1_Final ( unsigned char *  md,
SHA_CTX ctx 
)

Produce final SHA1 hash

Parameters
[out]mdSHA1 hash produced (must be atleast SHA1_DIGEST_LENGTH in length)
[in,out]ctxhashing context structure
See also
SHA1_Init
SHA1_Final

Definition at line 139 of file SHA1.c.

int SHA1_Init ( SHA_CTX ctx)

Initializes the SHA1 hashing algorithm

Parameters
[in,out]ctxhashing context structure
See also
SHA1_Update
SHA1_Final

Definition at line 77 of file SHA1.c.

int SHA1_Update ( SHA_CTX ctx,
const void *  data,
size_t  len 
)

Updates a block to the SHA1 hash

Parameters
[in,out]ctxhashing context structure
[in]datablock of data to hash
[in]lenlength of block to hash
See also
SHA1_Init
SHA1_Final

Definition at line 173 of file SHA1.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:49