libsec: add poly1305
This commit is contained in:
parent
a3c1557041
commit
7effba9d98
4 changed files with 204 additions and 1 deletions
|
@ -141,6 +141,7 @@ enum
|
|||
SHA2_512dlen= 64, /* SHA-512 digest length */
|
||||
MD4dlen= 16, /* MD4 digest length */
|
||||
MD5dlen= 16, /* MD5 digest length */
|
||||
Poly1305dlen= 16, /* Poly1305 digest length */
|
||||
|
||||
Hmacblksz = 64, /* in bytes; from rfc2104 */
|
||||
};
|
||||
|
@ -189,6 +190,8 @@ MD5state* md5unpickle(char*);
|
|||
char* sha1pickle(SHA1state*);
|
||||
SHA1state* sha1unpickle(char*);
|
||||
|
||||
DigestState* poly1305(uchar*, ulong, uchar*, ulong, uchar*, DigestState*);
|
||||
|
||||
/*
|
||||
* random number generation
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue