routing header correctly arrives at hidden service in route message handling flow

Pesky wrong nonce made the reply and reply header not decrypt correctly, only visible by the lack of magic prefixes on the routing header.
This commit is contained in:
херетик
2023-03-21 13:54:30 +00:00
parent 9e94164e32
commit c20588dcf5
33 changed files with 220 additions and 280 deletions

View File

@@ -26,6 +26,7 @@ var (
// keys using ECDH.
func GetBlock(from *prv.Key, to *pub.Key) (block cipher.Block) {
secret := ecdh.Compute(from, to)
log.T.S("secret", secret)
block, _ = aes.NewCipher(secret[:])
return
}