]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/sechash
fix bugs and cleanup cryptsetup code
[plan9front.git] / sys / man / 2 / sechash
index 4fd9f4f080316695fc95c72534d09c1b598f731f..2f1c854383133def7a715f17927ce19532d38c60 100644 (file)
@@ -2,7 +2,7 @@
 .SH NAME
 md4, md5,
 sha1, sha2_224, sha2_256, sha2_384, sha2_512,
-ripemd160,
+ripemd160, poly1305,
 hmac_x, hmac_md5,
 hmac_sha1, hmac_sha2_224, hmac_sha2_256, hmac_sha2_384, hmac_sha2_512,
 md5pickle, md5unpickle,
@@ -58,6 +58,8 @@ DS*   sha2_512(uchar *data, ulong dlen, uchar *digest, DS *state)
 .Ti
 DS*    ripemd160(uchar *data, ulong dlen, uchar *digest, DS *state)
 .Ti
+DS*    poly1305(uchar *p, ulong len, uchar *key, ulong klen, uchar *digest, DS *state)
+.Ti
 DS*    hmac_x(uchar *p, ulong len, uchar *key, ulong klen, uchar *digest, DS *s, DS*(*x)(uchar*, ulong, uchar*, DS*), int xlen)
 .Ti
 DS*    hmac_md5(uchar *data, ulong dlen, uchar *key, ulong klen, uchar *digest, DS *state)
@@ -92,6 +94,7 @@ The routines
 .IR sha2_384 ,
 .IR sha2_512 ,
 .IR ripemd160 ,
+.IR poly1305 ,
 .IR hmac_md5 ,
 .IR hmac_sha1 ,
 .IR hmac_sha2_224 ,
@@ -149,6 +152,10 @@ internally, but
 .I hmac_x
 is not intended for general use.
 .PP
+.IR Poly1305
+is a one-time authenticator designed by D. J. Bernstein. It takes a 32-byte
+one-time key and a message and produces a 16-byte tag.
+.PP
 The functions
 .I md5pickle
 and