shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shishi/lib nettle.c


From: shishi-commit
Subject: shishi/lib nettle.c
Date: Sun, 21 Sep 2003 08:59:35 -0400

CVSROOT:        /cvsroot/shishi
Module name:    shishi
Branch:         
Changes by:     Simon Josefsson <address@hidden>        03/09/21 08:59:35

Modified files:
        lib            : nettle.c 

Log message:
        Doc fix.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/nettle.c.diff?tr1=1.14&tr2=1.15&r1=text&r2=text

Patches:
Index: shishi/lib/nettle.c
diff -u shishi/lib/nettle.c:1.14 shishi/lib/nettle.c:1.15
--- shishi/lib/nettle.c:1.14    Sun Sep 21 08:58:29 2003
+++ shishi/lib/nettle.c Sun Sep 21 08:59:35 2003
@@ -397,13 +397,20 @@
  * @handle: shishi handle as allocated by shishi_init().
  * @decryptp: 0 to indicate encryption, non-0 to indicate decryption.
  * @key: input character array with key to use.
- * @keylen
+ * @keylen: length of input key array.
+ * @iv: input character array with initialization vector to use, or NULL.
+ * @ivout: output character array with updated initialization vector, or NULL.
  * @in: input character array of data to encrypt/decrypt.
  * @inlen: length of input character array of data to encrypt/decrypt.
  * @out: newly allocated character array with encrypted/decrypted data.
  *
  * Encrypt or decrypt data (depending on @decryptp) using ARCFOUR.
  * The @out buffer must be deallocated by the caller.
+ *
+ * The "initialization vector" used here is the concatenation of the
+ * sbox and i and j, and is thus always of size 256 + 1 + 1.  This is
+ * a slight abuse of terminology, and assumes you know what you are
+ * doing.  Don't use it if you can avoid to.
  *
  * Return value: Returns SHISHI_OK iff successful.
  **/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]