sharedSecretEncoded
fn
ubyte[] sharedSecretEncoded(scope const(ubyte)[] sharedSecretRaw)Encodes the shared secret for hashing exactly as deployed implementations do: canonical mpint encoding of the raw output bytes unchanged (see computeExchangeHash for the RFC 8731 note).
Parameters
sharedSecretRaw | The raw X25519 output bytes. |
Returns
The wire-encoded mpint used by the exchange hash and KDF.