StaticfromCreate an MLKEMPublicKey from raw bytes.
The ML-KEM security level
The public key bytes
Returns the security level of this key.
Returns the raw key bytes.
Returns a copy of the raw key bytes.
Returns the size of the key in bytes.
Encapsulate a new shared secret.
This creates a random shared secret and encapsulates it, returning both the shared secret (to be used as a symmetric key) and the ciphertext (to be sent to the private key holder for decapsulation).
Object containing sharedSecret and ciphertext
Get string representation.
Returns the CBOR tags associated with MLKEMPublicKey.
Returns the untagged CBOR encoding.
Format: [level, key_bytes]
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
Creates an MLKEMPublicKey by decoding it from untagged CBOR.
Creates an MLKEMPublicKey by decoding it from tagged CBOR.
StaticfromStaticfromStatic method to decode from tagged CBOR binary data.
StaticfromStatic method to decode from untagged CBOR binary data.
Returns the UR representation.
Returns the UR string representation.
StaticfromStaticfrom
MLKEMPublicKey - Post-quantum key encapsulation public key using ML-KEM.