Remove the notion of "onion ciphers"; make packing and unpacking separate fns

svn:r236
This commit is contained in:
Nick Mathewson
2003-04-16 16:19:27 +00:00
parent cb825d3711
commit eab5be35b9
5 changed files with 95 additions and 94 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ ARMA - arma claims
X Abandoned
- Use a stronger cipher
NICK - 3des for now
. Use a stronger cipher
o 3des for now
- aes when we everybody has openssl 0.9.7
. Topics / circuits
o Implement topics
+2 -5
View File
@@ -273,13 +273,11 @@ which reveals the downstream node.
in a circuit. Each (unencrypted) layer has the following fields:
Version [1 byte]
Back cipher [4 bits]
Forward cipher [4 bits]
Port [2 bytes]
Address [4 bytes]
Expiration time [4 bytes]
Key seed material [16 bytes]
[Total: 28 bytes]
[Total: 27 bytes]
The value of Version is currently 2.
@@ -287,7 +285,7 @@ which reveals the downstream node.
0: Identity
1: Single DES in OFB
2: RC4
3: Triple DES in OFB
3: Triple DES (encrypt-decrypt-encrypt) in OFB
The port and address field denote the IPV4 address and port of
the next onion router in the circuit, or are set to 0 for the
@@ -305,7 +303,6 @@ which reveals the downstream node.
2. For I=N downto 1:
A. Create an onion layer L, setting Version=2,
BackCipher=DES/OFB(1), ForwardCipher=DES/OFB(2),
ExpirationTime=now + 1 day, and Seed=16 random bytes.
If I=N, set Port=Address=0. Else, set Port and Address to