pub fn DeriveKeyPairX(
    alg: KEM,
    ikm: &InputKeyMaterial
) -> Result<KeyPair, HpkeError>
Expand description

For X25519 and X448, the DeriveKeyPair() function applies a KDF to the input:

def DeriveKeyPair(ikm):
  dkp_prk = LabeledExtract("", "dkp_prk", ikm)
  sk = LabeledExpand(dkp_prk, "sk", "", Nsk)
  return (sk, pk(sk))