mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-06-16 22:10:48 -04:00
more method consolidation
This commit is contained in:
@ -252,7 +252,7 @@ func (c *NTCP2Session) encryptSessionRequestOptions(
|
||||
obfuscatedX []byte,
|
||||
) ([]byte, error) {
|
||||
// Compute shared secret
|
||||
sharedSecret, err := c.computeSharedSecret(sessionRequestMessage.XContent[:], c.remoteStaticKey)
|
||||
sharedSecret, err := c.computeSharedSecret(sessionRequestMessage.XContent[:], c.HandshakeState.(*handshake.HandshakeState).RemoteStaticKey.Bytes())
|
||||
if err != nil {
|
||||
return nil, oops.Errorf("failed to compute shared secret: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user