Classes | Macros | Typedefs | Functions
sha1.h File Reference
#include <stdlib.h>
#include "../../src/stdint.hpp"
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  sha1_ctxt
 

Macros

#define SHA1_Final(x, y)   sha1_result((y), (x))
 
#define SHA1_Init(x)   sha1_init((x))
 
#define SHA1_RESULTLEN   (160/8)
 
#define SHA1_Update(x, y, z)   sha1_loop((x), (y), (z))
 
#define SHA_DIGEST_LENGTH   20
 

Typedefs

typedef struct sha1_ctxt SHA_CTX
 

Functions

void sha1_init (struct sha1_ctxt *)
 
void sha1_loop (struct sha1_ctxt *, const uint8_t *, size_t)
 
void sha1_pad (struct sha1_ctxt *)
 
void sha1_result (struct sha1_ctxt *, uint8_t *)
 

Macro Definition Documentation

◆ SHA1_Final

#define SHA1_Final (   x,
  y 
)    sha1_result((y), (x))

Definition at line 79 of file sha1.h.

◆ SHA1_Init

#define SHA1_Init (   x)    sha1_init((x))

Definition at line 77 of file sha1.h.

◆ SHA1_RESULTLEN

#define SHA1_RESULTLEN   (160/8)

Definition at line 81 of file sha1.h.

◆ SHA1_Update

#define SHA1_Update (   x,
  y,
  z 
)    sha1_loop((x), (y), (z))

Definition at line 78 of file sha1.h.

◆ SHA_DIGEST_LENGTH

#define SHA_DIGEST_LENGTH   20

Definition at line 74 of file sha1.h.

Typedef Documentation

◆ SHA_CTX

typedef struct sha1_ctxt SHA_CTX

Definition at line 75 of file sha1.h.

Function Documentation

◆ sha1_init()

void sha1_init ( struct sha1_ctxt )

Definition at line 224 of file sha1.c.

◆ sha1_loop()

void sha1_loop ( struct sha1_ctxt ,
const uint8_t *  ,
size_t   
)

Definition at line 278 of file sha1.c.

◆ sha1_pad()

void sha1_pad ( struct sha1_ctxt )

Definition at line 235 of file sha1.c.

◆ sha1_result()

void sha1_result ( struct sha1_ctxt ,
uint8_t *   
)

Definition at line 306 of file sha1.c.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04