Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Security.​Cryptography.​MLKemAlgorithm

Assembly: System.Security.Cryptography

Inheritance: object → MLKemAlgorithm

Implemented Interfaces

Represents a specific algorithm within the ML-KEM family.

Properties

public int
CiphertextSizeInBytes
Gets the size of the ciphertext for the algorithm, in bytes.
public int
DecapsulationKeySizeInBytes
Gets the size of the decapsulation key for the algorithm, in bytes.
public int
EncapsulationKeySizeInBytes
Gets the size of the encapsulation key for the algorithm, in bytes.
public static MLKemAlgorithm
MLKem1024
Gets an ML-KEM algorithm identifier for the ML-KEM-1024 algorithm.
public static MLKemAlgorithm
MLKem512
Gets an ML-KEM algorithm identifier for the ML-KEM-512 algorithm.
public static MLKemAlgorithm
MLKem768
Gets an ML-KEM algorithm identifier for the ML-KEM-768 algorithm.
public string
Name
Gets the name of the algorithm.
public int
PrivateSeedSizeInBytes
Gets the size of the private seed for the algorithm, in bytes.
public int
SharedSecretSizeInBytes
Gets the size of the shared secret for the algorithm, in bytes.

Methods

public bool
Equals​(object obj)
Determines whether the specified object is equal to the current object.
Returns <code data-dev-comment-type="langword">true</code> if the specified object is equal to the current object; otherwise, <code data-dev-comment-type="langword">false</code> .
obj The object to compare with the current object.
public bool
Equals​(MLKemAlgorithm other)
Compares two <see cref="T:System.Security.Cryptography.MLKemAlgorithm" /> objects.
Returns <see langword="true" /> if the objects are considered equal; otherwise, <see langword="false" /> .
other An object to be compared to the current <see cref="T:System.Security.Cryptography.MLKemAlgorithm" /> object.
public int
GetHashCode​()
Serves as the default hash function.
Returns A hash code for the current object.
public string
ToString​()
Returns a string that represents the current object.
Returns A string that represents the current object.
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object