From e17f71f9f01a429664caf120d9ac159ed9f5283f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 27 Mar 2015 13:28:03 +0000 Subject: - 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 --- doc/libstdcrypto/index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/libstdcrypto/index.html') 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:
  • md5
  • sha1
  • sha256
  • +
  • sha512
  • Compiling

    @@ -127,6 +128,25 @@ SHA256
  • sha256_final() computes the digest
  • +

    +SHA512

    + +
    +  SHA512Schedule ctx ;
    +  char const *message ;
    +  unsigned int messagelen ;
    +  char digest[64] ;
    +
    +  sha512_init(&ctx) ;
    +  sha512_update(&ctx, message, messagelen) ;
    +  sha512_final(&ctx, digest) ;
    +
    + + -- cgit v1.2.3