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

[minion-cvs] Replace magic number 20 with HASH_LEN.



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

Modified Files:
	minion-spec.txt 
Log Message:
Replace magic number 20 with HASH_LEN.
Replace tabs with spaces.


Index: minion-spec.txt
===================================================================
RCS file: /home/minion/cvsroot/doc/spec/minion-spec.txt,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- minion-spec.txt	7 Oct 2003 19:55:40 -0000	1.19
+++ minion-spec.txt	7 Oct 2003 20:14:09 -0000	1.20
@@ -660,8 +660,8 @@
      // Calculate the sizes of the subheaders.
      for i = 1 .. N
         // OAEP Padding plus invariant parts plus routing info.
-	if i = N then
-	   Set RI from R
+        if i = N then
+           Set RI from R
         else
            Set RI = RI_(i+1)
         endif
@@ -700,7 +700,7 @@
              Let RT = RT_(i+1), RI = RI_(i+1)
         endif
 
-        SH0 = SHS(V, SK_i, Z(20), len(RI), RT, RI)
+        SH0 = SHS(V, SK_i, Z(HASH_LEN), len(RI), RT, RI)
         SH_LEN = LEN(SH0)
         H0 = SH0 | H_(i+1)