nskinkel / oppy

A Tor client (onion proxy) implementation in Python
BSD 3-Clause "New" or "Revised" License
24 stars 3 forks source link

should only decrypt relay cells until they are recognized #70

Closed nskinkel closed 9 years ago

nskinkel commented 9 years ago

We should only be decrypting incoming relay cells until they are "recognized". Currently, we're just attempting to decrypt any incoming relay cells with each backward cipher, and this means any relay cells sent from the non-exit node are garbled and unreadable.

Crypto.util should have some function like "decryptUntilRecognized(cell)" that returns the decrypted cell along with some information about which cell it came from.

nskinkel commented 9 years ago

closed in #76