[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Fix the "Encrypt an octet sequence" algorithm, via comm...
Update of /home/minion/cvsroot/doc/spec
In directory moria.mit.edu:/tmp/cvs-serv25455
Modified Files:
nym-spec.txt
Log Message:
Fix the "Encrypt an octet sequence" algorithm, via comments from Jean-Rene
Index: nym-spec.txt
===================================================================
RCS file: /home/minion/cvsroot/doc/spec/nym-spec.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- nym-spec.txt 6 Aug 2004 09:26:43 -0000 1.7
+++ nym-spec.txt 18 Aug 2004 18:50:22 -0000 1.8
@@ -518,8 +518,8 @@
P -- The padding granularity -- either 1024 or 128.
Let M_C = COMPRESS(M).
- Let PADDING_LEN = CEIL(LEN(M_C)/P) - LEN(M_C).
- Let M_P = M | Z(PADDING_LEN).
+ 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 M_Enc = SPRP_Encrypt(K, "", M_P)