This documentation is under development!

sha1

sha1#

Functions

void SHA1Transform(uint32_t state[5], const unsigned char buffer[64])#
void SHA1Init(SHA1_CTX *context)#

Initialize new context

void SHA1Update(SHA1_CTX *context, const unsigned char *data, uint32_t len)#

Updates context with data or length len.

void SHA1Final(unsigned char digest[20], SHA1_CTX *context)#

Writes digest to digest.

void SHA1(char *hash_out, const char *str, int len)#

Convenience function. Writes digest of str (of size len) to hash_out. hash_out must be a string with length of at least 21 bytes.

struct SHA1_CTX#

Public Members

uint32_t state[5]#
uint32_t count[2]#
unsigned char buffer[64]#