Structsยง
- Both ๐
- Structure in Rust representing the
bothSEQUENCE used in the following ASN.1 structures, as defined in [draft-ietf-lamps-kyber-certificates-11 Section 6].
Enumsยง
- MlKem
Private ๐KeyStructure - Structure in Rust representing all the following three structures as defined in [draft-ietf-lamps-kyber-certificates-11 Section 6].
Constantsยง
- ID_
ALG_ ๐ML_ KEM_ 512 - Object Identifier (OID) of MK-KEM-512 Section 3 of https://datatracker.ietf.org/doc/draft-ietf-lamps-kyber-certificates/
- ID_
ALG_ ๐ML_ KEM_ 768 - Object Identifier (OID) of MK-KEM-768 Section 3 of https://datatracker.ietf.org/doc/draft-ietf-lamps-kyber-certificates/
- ID_
ALG_ ๐ML_ KEM_ 1024 - Object Identifier (OID) of MK-KEM-1024 Section 3 of https://datatracker.ietf.org/doc/draft-ietf-lamps-kyber-certificates/
Functionsยง
- convert_
handle_ ๐to_ public_ key - Convert an ML-KEM public key handle to public key bytes. If the handle is not representing a ML-KEM public key, throw an OperationError.
- convert_
handle_ ๐to_ seed_ and_ public_ key - Convert an ML-KEM private key handle to seed bytes and public key bytes. If the handle is not representing a ML-KEM private key, throw an OperationError.
- convert_
public_ ๐key_ to_ handle - Convert public key bytes to an ML-KEM public key handle. If the conversion fails, throw a DataError.
- convert_
seed_ ๐to_ handles - Convert seed bytes to an ML-KEM private key handle and an ML-KEM public key handle. If private key bytes and/or public key bytes are provided, it runs a consistency check against the seed. If the length in bits of seed bytes is not 512, the conversion fails, or the consistency check fails, throw a DataError.
- decapsulate ๐
- https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-decapsulate
- encapsulate ๐
- https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-encapsulate
- export_
key ๐ - https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-export-key
- generate_
key ๐ - https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-generate-key
- import_
key ๐ - https://wicg.github.io/webcrypto-modern-algos/#ml-kem-operations-import-key