[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Use 20-byte LIONESS subkeys, like minion does. (patch f...



Update of /home/minion/cvsroot/doc/spec
In directory moria.mit.edu:/tmp/cvs-serv28082

Modified Files:
	nym-spec.txt 
Log Message:
Use 20-byte LIONESS subkeys, like minion does. (patch from Jean-Rene)

Index: nym-spec.txt
===================================================================
RCS file: /home/minion/cvsroot/doc/spec/nym-spec.txt,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- nym-spec.txt	18 Aug 2004 18:50:22 -0000	1.8
+++ nym-spec.txt	18 Aug 2004 23:59:03 -0000	1.9
@@ -506,7 +506,7 @@
    To encrypt an octet sequence, the nymserver first compresses the
    octet sequence (as described in E2E-spec.txt).  Next, the nymserver
    pads the octet sequence to the nearest multiple of 128 octets in
-   length.  The nymserver then generates a random 128-bit key;
+   length.  The nymserver then generates a random 160-bit key;
    LIONESS-encrypts the padded compressed data with the key; and
    prepends to the encrypted data the RSA-encrypted key.  We use the
    same trick as minion-spec.txt to minimize wasted space.
@@ -521,9 +521,9 @@
      Let PADDING_LEN = CEIL(LEN(M_C)/P)*P - LEN(M_C).
      Let M_P = M_C | Z(PADDING_LEN).
 
-     Let K = Rand(16).
+     Let K = Rand(20).
      Let M_Enc = SPRP_Encrypt(K, "", M_P)
-     Let RSA_LEN = Len(PK_nym) - PK_OVERHEAD_LEN - 16
+     Let RSA_LEN = Len(PK_nym) - PK_OVERHEAD_LEN - 20
      Let RSA_PART = PK_Encrypt(PK_nym, K | M_Enc[0:RSA_LEN])
 
      Return RSA_PART | M_Enc[RSA_LEN:Len(M_Enc)-RSA_LEN]