Skip to content

Commit

Permalink
EIP-8: remove size masking again
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Jan 26, 2016
1 parent 69c857f commit d39e18c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions EIPS/eip-8.md
Expand Up @@ -38,17 +38,15 @@ should pad `auth-body` with at least 100 bytes of junk data.
```text
auth-vsn = 4
auth-size = size of enc-auth-body, encoded as a big-endian 16-bit integer
masked-auth-size = xor(auth-size, enc-auth-body[2:])
auth-body = rlp.list(sig, initiator-pubk, initiator-nonce, auth-vsn)
enc-auth-body = ecies.encrypt(recipient-pubk, auth-body, auth-size)
auth-packet = masked-auth-size || enc-auth-body
auth-packet = auth-size || enc-auth-body
ack-vsn = 4
ack-size = size of enc-ack-body, encoded as a big-endian 16-bit integer
masked-ack-size = xor(ask-size, enc-ack-body[2:])
ack-body = rlp.list(recipient-ephemeral-pubk, recipient-nonce, ack-vsn)
enc-ack-body = ecies.encrypt(initiator-pubk, ack-body, ack-size)
ack-packet = masked-ack-size || enc-ack-body
ack-packet = ack-size || enc-ack-body
where
Expand Down

0 comments on commit d39e18c

Please sign in to comment.