X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2Fmppe%2Fsha1.h;fp=linux%2Fmppe%2Fsha1.h;h=b23356bb21c8e4fe6f82a24e06ae78ba2c806896;hp=0000000000000000000000000000000000000000;hb=dbab7400abf57617a9334735a64ff00c6552cec5;hpb=67ccbff7ff8402cce48d15994713c196f683a280 diff --git a/linux/mppe/sha1.h b/linux/mppe/sha1.h new file mode 100644 index 0000000..b23356b --- /dev/null +++ b/linux/mppe/sha1.h @@ -0,0 +1,18 @@ +/* sha1.h */ + +#ifndef _SHA1_H +#define _SHA1_H + +typedef struct { + unsigned long state[5]; + unsigned long count[2]; + unsigned char buffer[64]; +} SHA1_CTX; + +#define SHA1_SIGNATURE_SIZE 20 + +extern void SHA1_Init(SHA1_CTX *); +extern void SHA1_Update(SHA1_CTX *, const unsigned char *, unsigned int); +extern void SHA1_Final(unsigned char[SHA1_SIGNATURE_SIZE], SHA1_CTX *); + +#endif /* _SHA1_H */