diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-27 13:28:03 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-27 13:28:03 +0000 |
commit | e17f71f9f01a429664caf120d9ac159ed9f5283f (patch) | |
tree | 524ebfc55d4aa56b2842a109ffffab2319afa6c2 /doc/libstdcrypto/index.html | |
parent | 36333f75234a6cb1b98cbe104aee3506d6bec9a1 (diff) | |
download | skalibs-e17f71f9f01a429664caf120d9ac159ed9f5283f.tar.xz |
- added sha512 (buggy, need to commit to test somewhere else)
- version bump (not a rc yet)
- bugfix: buffer_get returned -1 EPIPE on short reads w/o EOF
Diffstat (limited to 'doc/libstdcrypto/index.html')
-rw-r--r-- | doc/libstdcrypto/index.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/libstdcrypto/index.html b/doc/libstdcrypto/index.html index 02b06cb..4b17cbc 100644 --- a/doc/libstdcrypto/index.html +++ b/doc/libstdcrypto/index.html @@ -29,6 +29,7 @@ operations are provided: <li> md5 </li> <li> sha1 </li> <li> sha256 </li> + <li> sha512 </li> </ul> <h2> Compiling </h2> @@ -127,6 +128,25 @@ SHA256 </h3> <li> <tt>sha256_final()</tt> computes the digest </li> </ul> +<h3> <a name="sha512"></a> +SHA512 </h3> + +<pre> + SHA512Schedule ctx ; + char const *message ; + unsigned int messagelen ; + char digest[64] ; + + sha512_init(&ctx) ; + sha512_update(&ctx, message, messagelen) ; + sha512_final(&ctx, digest) ; +</pre> + +<ul> + <li> <tt>sha512_init()</tt> prepares a SHA512Schedule structure for computation </li> + <li> <tt>sha512_update()</tt> adds <em>message</em> to the message to be digested </li> + <li> <tt>sha512_final()</tt> computes the digest </li> +</ul> </body> </html> |