more method consolidation

This commit is contained in:
eyedeekay
2025-05-10 21:12:49 -04:00
parent ef156f6944
commit 09fe22178d

View File

@ -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)
}