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 | |
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')
-rw-r--r-- | doc/index.html | 2 | ||||
-rw-r--r-- | doc/libstdcrypto/index.html | 20 | ||||
-rw-r--r-- | doc/upgrade.html | 6 |
3 files changed, 27 insertions, 1 deletions
diff --git a/doc/index.html b/doc/index.html index f5cca8c..0628eba 100644 --- a/doc/index.html +++ b/doc/index.html @@ -59,7 +59,7 @@ with a standard C development environment </li> <h3> Download </h3> <ul> - <li> The current released version of skalibs is <a href="skalibs-2.3.2.0.tar.gz">2.3.2.0</a>. </li> + <li> The current released version of skalibs is <a href="skalibs-2.3.3.0.tar.gz">2.3.3.0</a>. </li> <li> Alternatively, you can checkout a copy of the skalibs git repository: <pre> git clone git://git.skarnet.org/skalibs </pre> </li> </ul> 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> diff --git a/doc/upgrade.html b/doc/upgrade.html index 7e2b687..7736c88 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -17,6 +17,12 @@ <h1> What has changed in skalibs </h1> +<h2> in 2.3.3.0 </h2> + +<ul> + <li> New sha512 functions, see <tt>skalibs/sha512.h</tt> </li> +</ul> + <h2> in 2.3.2.0 </h2> <ul> |