init(seedRepresentation:publicKey:)
Initializes a private key from a seed representation and optional public key.
Declaration
init<D>(seedRepresentation: D, publicKey: MLKEM768.PublicKey?) throws where D : DataProtocolParameters
- seedRepresentation:
The seed representation
d||z, as specified in theML-KEM.KeyGen_internal(d,z)algorithm (Algorithm 16) of FIPS 203. - publicKey:
An optional public key. Pass this to check that the initialized private key is consistent with the public key. The initializer throws if the public key doesn’t match the expected value.