Initial Commit
This commit is contained in:
16
src/sha1.h
Normal file
16
src/sha1.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __SHA1_H__
|
||||
#define __SHA1_H__
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#define HASH_LENGTH 20
|
||||
#define BLOCK_LENGTH 64
|
||||
|
||||
void init(void);
|
||||
void initHmac(const uint8_t *secret, uint8_t secretLength);
|
||||
uint8_t *result(void);
|
||||
uint8_t *resultHmac(void);
|
||||
void write(uint8_t);
|
||||
void writeArray(uint8_t *buffer, uint8_t size);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user