From 3534b428629be185e096be99e3bd5fdfe32d5544 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Sep 2014 18:55:44 +0000 Subject: initial commit with rc for skalibs-2.0.0.0 --- doc/libstdcrypto/index.html | 110 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 doc/libstdcrypto/index.html (limited to 'doc/libstdcrypto/index.html') diff --git a/doc/libstdcrypto/index.html b/doc/libstdcrypto/index.html new file mode 100644 index 0000000..bbc5f08 --- /dev/null +++ b/doc/libstdcrypto/index.html @@ -0,0 +1,110 @@ + + + + + skalibs: the stdcrypto library interface + + + + + + +

+libskarnet
+skalibs
+Software
+skarnet.org +

+ +

The stdcrypto library interface

+ +

+stdcrypto is a small collection of standard, +public-domain cryptographic primitives. Currently, the following +operations are provided: +

+ + + +

Compiling

+ + + +

Programming

+ +

+ You should refer to the skalibs/stdcrypto.h header and included headers +for the exact function prototypes. +

+ +

+RC4

+ +
+  RC4Schedule ctx ;
+  unsigned char const *key ;
+  unsigned int keylen ;
+  unsigned char const *in ;
+  unsigned char *out ;
+  unsigned int len ;
+
+  rc4_init(&ctx, key, keylen) ;
+  rc4(&ctx, in, out, len) ;
+
+ + + +

+MD5

+ +
+  MD5Schedule ctx ;
+  char const *message ;
+  unsigned int messagelen ;
+  char digest[16] ;
+
+  md5_init(&ctx) ;
+  md5_update(&ctx, message, messagelen) ;
+  md5_final(&ctx, digest) ;
+
+ + + +

+SHA1

+ +
+  SHA1Schedule ctx ;
+  char const *message ;
+  unsigned int messagelen ;
+  unsigned char digest[20] ;
+
+  sha1_init(&ctx) ;
+  sha1_update(&ctx, message, messagelen) ;
+  sha1_final(&ctx, digest) ;
+
+ + + + + -- cgit v1.3.1