You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
311 B
15 lines
311 B
#ifndef _SHA1_H_
|
|
#define _SHA1_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define TO_LITTLE_ENDIAN32(x) ( ((x>>24) | ((x>>8)&0xFF00)) | ((x<<24) | ((x<<8)&0xFF0000)) )
|
|
|
|
uint32_t sha1_digest[5];
|
|
|
|
void sha1_init(void);
|
|
void sha1(char* msg, int32_t len);
|
|
void sha1_fill(int32_t l);
|
|
void sha1_addbyte(uint8_t c);
|
|
|
|
#endif //_SHA1_H_
|
|
|