diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 12:34:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 12:34:14 +0000 |
commit | 0d82edd9f8bebb396a9154d4e1003340dbf6b967 (patch) | |
tree | 0659c834f387f3504944a610ed6858b9e268e6c7 /doc/libstdcrypto/index.html | |
parent | 2436785702b47996e9f0e281df0d6027660ec914 (diff) | |
download | skalibs-0d82edd9f8bebb396a9154d4e1003340dbf6b967.tar.xz |
Lots of cosmetic fixes.
sha256 documented.
Diffstat (limited to 'doc/libstdcrypto/index.html')
-rw-r--r-- | doc/libstdcrypto/index.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/libstdcrypto/index.html b/doc/libstdcrypto/index.html index bbc5f08..02b06cb 100644 --- a/doc/libstdcrypto/index.html +++ b/doc/libstdcrypto/index.html @@ -28,6 +28,7 @@ operations are provided: <li> rc4 </li> <li> md5 </li> <li> sha1 </li> + <li> sha256 </li> </ul> <h2> Compiling </h2> @@ -106,5 +107,26 @@ SHA1 </h3> <li> <tt>sha1_final()</tt> computes the digest </li> </ul> +<h3> <a name="sha256"></a> +SHA256 </h3> + +<pre> + SHA256Schedule ctx ; + char const *message ; + unsigned int messagelen ; + char digest[32] ; + + sha256_init(&ctx) ; + sha256_update(&ctx, message, messagelen) ; + sha256_final(&ctx, digest) ; +</pre> + +<ul> + <li> <tt>sha256_init()</tt> prepares a SHA256Schedule structure for computation </li> + <li> <tt>sha256_update()</tt> adds <em>message</em> to the message to be digested </li> + <li> <tt>sha256_final()</tt> computes the digest </li> +</ul> + + </body> </html> |