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/index.html | 2 +- doc/libstdcrypto/index.html | 20 ++++++++ doc/upgrade.html | 6 +++ package/deps.mak | 8 +++- package/info | 2 +- src/include/skalibs/sha512.h | 21 +++++++++ src/include/skalibs/stdcrypto.h | 1 + src/libstdcrypto/INCLUDE | 5 -- src/libstdcrypto/Makefile | 7 --- src/libstdcrypto/sha512-internal.h | 10 ++++ src/libstdcrypto/sha512_final.c | 25 ++++++++++ src/libstdcrypto/sha512_init.c | 9 ++++ src/libstdcrypto/sha512_transform.c | 93 +++++++++++++++++++++++++++++++++++++ src/libstdcrypto/sha512_update.c | 24 ++++++++++ src/libstddjb/buffer_get.c | 2 +- 15 files changed, 219 insertions(+), 16 deletions(-) create mode 100644 src/include/skalibs/sha512.h delete mode 100644 src/libstdcrypto/INCLUDE delete mode 100644 src/libstdcrypto/Makefile create mode 100644 src/libstdcrypto/sha512-internal.h create mode 100644 src/libstdcrypto/sha512_final.c create mode 100644 src/libstdcrypto/sha512_init.c create mode 100644 src/libstdcrypto/sha512_transform.c create mode 100644 src/libstdcrypto/sha512_update.c 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

Download

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) ;
    +
    + + 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 @@

    What has changed in skalibs

    +

    in 2.3.3.0

    + + +

    in 2.3.2.0