char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
ed1c3a20f
char/aliceai-t5-moe
1#ifndef SHA1_H 2#define SHA1_H 3 4/* 5SHA-1 in C 6By Steve Reid <steve@edmweb.com> 7100% Public Domain 8*/ 9 10#include "stdint.h" 11 12namespace vendor_hash { 13 14typedef struct 15{ 16uint32_t state [5 ]; 17uint32_t count [2 ]; 18unsigned char buffer [64 ]; 19}SHA1_CTX ; 20 21void SHA1Transform ( 22uint32_t state [5 ], 23const unsigned char buffer [64 ] 24 ); 25 26void SHA1Init ( 27SHA1_CTX * context 28 ); 29 30void SHA1Update ( 31SHA1_CTX * context , 32const unsigned char * data , 33uint32_t len 34 ); 35 36void SHA1Final ( 37unsigned char digest [20 ], 38SHA1_CTX * context 39 ); 40 41void SHA1 ( 42char * hash_out , 43const char * str , 44uint32_t len ); 45 46}// namespace vendor_hash 47 48#endif /* SHA1_H */