From 0d82edd9f8bebb396a9154d4e1003340dbf6b967 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 20 Dec 2014 12:34:14 +0000 Subject: Lots of cosmetic fixes. sha256 documented. --- doc/libstdcrypto/index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doc/libstdcrypto') 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:
  • rc4
  • md5
  • sha1
  • +
  • sha256
  • Compiling

    @@ -106,5 +107,26 @@ SHA1
  • sha1_final() computes the digest
  • +

    +SHA256

    + +
    +  SHA256Schedule ctx ;
    +  char const *message ;
    +  unsigned int messagelen ;
    +  char digest[32] ;
    +
    +  sha256_init(&ctx) ;
    +  sha256_update(&ctx, message, messagelen) ;
    +  sha256_final(&ctx, digest) ;
    +
    + + + + -- cgit v1.2.3