computeExchangeHashGroup14
fn
ubyte[32] computeExchangeHashGroup14(
scope const SshExchangeTranscript transcript)Computes the exchange hash for diffie-hellman-group14-sha256.
Differs from the curve25519 transcript only in the public-value encodings: e, f, and K enter as canonical mpints (RFC 4253 section 8) instead of length-prefixed raw strings. The shared secret still enters through sharedSecretEncoded, whose mpint form matches DH usage.
Parameters
transcript | All exchange-hash inputs; clientPublic and serverPublic hold the raw big-endian magnitudes of e and f, and sharedSecret holds the raw big-endian magnitude of K. |
Returns
The 32-byte SHA-256 exchange hash H.