diff options
author | Agney Lopes Roth Ferraz <agney@debian.org> | 2006-05-22 19:43:53 -0300 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:34 -0500 |
commit | 1db37ee0b1dbfebe11ff6a0eee8000392e4f3f61 (patch) | |
tree | 02b7da09dbd8cdf8828c01f47154fc76269eb9cc /sha1.h | |
parent | 1a3b201e8e94d8c07b3e0a2ce1af22293a53b506 (diff) | |
parent | 854292407779593a401a1d5ce71add51880fa84f (diff) |
Import Debian changes 0.4-1
hardinfo (0.4-1) unstable; urgency=low
* new upstream release
Diffstat (limited to 'sha1.h')
-rw-r--r-- | sha1.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +/* + * SHA-1 in C + * By Steve Reid <steve@edmweb.com> + * 100% Public Domain + */ + +#ifndef __SHA1_H__ +#define __SHA1_H__ + +typedef struct { + unsigned long state[5]; + unsigned long count[2]; + unsigned char buffer[64]; +} SHA1_CTX; + +void SHA1Transform(unsigned long state[5], unsigned char buffer[64]); +void SHA1Init(SHA1_CTX* context); +void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int len); +void SHA1Final(unsigned char digest[20], SHA1_CTX* context); + +#endif /* __SHA1_H__ */ |