diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-01 15:07:44 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-01 15:07:44 +0100 |
commit | 64640083dee2aaa5c407a8938cc44571333b9b6c (patch) | |
tree | 2b92b4a746249a3a3999bb3c31d4dbf1a1b5763c /sys/include | |
parent | 69e28c6513866152265fb11c2424afe69f0323d3 (diff) |
libsec: remove hash pickle functions, document ripemd160, cleanup sechash(2) manpage
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/ape/libsec.h | 9 | ||||
-rw-r--r-- | sys/include/libsec.h | 9 |
2 files changed, 4 insertions, 14 deletions
diff --git a/sys/include/ape/libsec.h b/sys/include/ape/libsec.h index ba339f1f9..167bcbb70 100644 --- a/sys/include/ape/libsec.h +++ b/sys/include/ape/libsec.h @@ -235,6 +235,7 @@ enum SHA2_512dlen= 64, /* SHA-512 digest length */ MD4dlen= 16, /* MD4 digest length */ MD5dlen= 16, /* MD5 digest length */ + RIPEMD160dlen= 20, /* RIPEMD-160 digest length */ Poly1305dlen= 16, /* Poly1305 digest length */ Hmacblksz = 64, /* in bytes; from rfc2104 */ @@ -264,6 +265,7 @@ typedef struct DigestState MD4state; DigestState* md4(uchar*, ulong, uchar*, DigestState*); DigestState* md5(uchar*, ulong, uchar*, DigestState*); +DigestState* ripemd160(uchar *, ulong, uchar *, DigestState *); DigestState* sha1(uchar*, ulong, uchar*, DigestState*); DigestState* sha2_224(uchar*, ulong, uchar*, DigestState*); DigestState* sha2_256(uchar*, ulong, uchar*, DigestState*); @@ -279,11 +281,6 @@ DigestState* hmac_sha2_224(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); DigestState* hmac_sha2_256(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); DigestState* hmac_sha2_384(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); DigestState* hmac_sha2_512(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); -char* md5pickle(MD5state*); -MD5state* md5unpickle(char*); -char* sha1pickle(SHA1state*); -SHA1state* sha1unpickle(char*); - DigestState* poly1305(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); /* @@ -562,8 +559,6 @@ void secp256r1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint void secp256k1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h); void secp384r1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h); -DigestState* ripemd160(uchar *, ulong, uchar *, DigestState *); - /* * Diffie-Hellman key exchange */ diff --git a/sys/include/libsec.h b/sys/include/libsec.h index fd063ebc0..1fa37a621 100644 --- a/sys/include/libsec.h +++ b/sys/include/libsec.h @@ -227,6 +227,7 @@ enum SHA2_512dlen= 64, /* SHA-512 digest length */ MD4dlen= 16, /* MD4 digest length */ MD5dlen= 16, /* MD5 digest length */ + RIPEMD160dlen= 20, /* RIPEMD-160 digest length */ Poly1305dlen= 16, /* Poly1305 digest length */ Hmacblksz = 64, /* in bytes; from rfc2104 */ @@ -256,6 +257,7 @@ typedef struct DigestState MD4state; DigestState* md4(uchar*, ulong, uchar*, DigestState*); DigestState* md5(uchar*, ulong, uchar*, DigestState*); +DigestState* ripemd160(uchar *, ulong, uchar *, DigestState *); DigestState* sha1(uchar*, ulong, uchar*, DigestState*); DigestState* sha2_224(uchar*, ulong, uchar*, DigestState*); DigestState* sha2_256(uchar*, ulong, uchar*, DigestState*); @@ -271,11 +273,6 @@ DigestState* hmac_sha2_224(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); DigestState* hmac_sha2_256(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); DigestState* hmac_sha2_384(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); DigestState* hmac_sha2_512(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); -char* md5pickle(MD5state*); -MD5state* md5unpickle(char*); -char* sha1pickle(SHA1state*); -SHA1state* sha1unpickle(char*); - DigestState* poly1305(uchar*, ulong, uchar*, ulong, uchar*, DigestState*); /* @@ -554,8 +551,6 @@ void secp256r1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint void secp256k1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h); void secp384r1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h); -DigestState* ripemd160(uchar *, ulong, uchar *, DigestState *); - /* * Diffie-Hellman key exchange */ |