diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-08 09:39:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-08 09:39:11 +0000 |
commit | 04905aaeffba2bc77866a4056dc3f2020a86bb26 (patch) | |
tree | f66439aeb6cfe05268824ac890169e5cd306f3f3 /doc/libstdcrypto | |
parent | a5079576ae9007fb1ca7ebcc911b5fb035cd2d06 (diff) | |
download | skalibs-04905aaeffba2bc77866a4056dc3f2020a86bb26.tar.xz |
Update documentation for the types change, with some extra fixes
Also remove --enable-replace-libc from configure
Diffstat (limited to 'doc/libstdcrypto')
-rw-r--r-- | doc/libstdcrypto/index.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/libstdcrypto/index.html b/doc/libstdcrypto/index.html index ca47ff9..cf45f20 100644 --- a/doc/libstdcrypto/index.html +++ b/doc/libstdcrypto/index.html @@ -33,6 +33,11 @@ operations are provided: <li> sha512 </li> </ul> +<p> + Please bear in mind that rc4 and md5 are broken, and that sha1 is about to be. +Do not use them in security-critical applications. +</p> + <h2> Compiling </h2> <ul> @@ -52,10 +57,10 @@ RC4 </h3> <pre> RC4Schedule ctx ; unsigned char const *key ; - unsigned int keylen ; + size_t keylen ; unsigned char const *in ; unsigned char *out ; - unsigned int len ; + size_t len ; rc4_init(&ctx, key, keylen) ; rc4(&ctx, in, out, len) ; @@ -75,7 +80,7 @@ MD5 </h3> <pre> MD5Schedule ctx ; char const *message ; - unsigned int messagelen ; + size_t messagelen ; char digest[16] ; md5_init(&ctx) ; @@ -95,7 +100,7 @@ SHA1 </h3> <pre> SHA1Schedule ctx ; char const *message ; - unsigned int messagelen ; + size_t messagelen ; unsigned char digest[20] ; sha1_init(&ctx) ; @@ -115,7 +120,7 @@ SHA256 </h3> <pre> SHA256Schedule ctx ; char const *message ; - unsigned int messagelen ; + size_t messagelen ; char digest[32] ; sha256_init(&ctx) ; @@ -135,7 +140,7 @@ SHA512 </h3> <pre> SHA512Schedule ctx ; char const *message ; - unsigned int messagelen ; + size_t messagelen ; char digest[64] ; sha512_init(&ctx) ; |