KEM class
Key Encapsulation Mechanism (KEM) implementation
Properties
- algorithmName → String
-
final
- algorithmVersion → String
-
no setter
- ciphertextLength → int
-
Get the ciphertext length for this KEM
no setter
- claimedNistLevel → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isIndCcaSecure → bool
-
no setter
- publicKeyLength → int
-
Get the public key length for this KEM
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretKeyLength → int
-
Get the secret key length for this KEM
no setter
-
Get the shared secret length for this KEM
no setter
Methods
-
decapsulate(
Uint8List ciphertext, Uint8List secretKey) → Uint8List - Decapsulate a shared secret using the secret key
-
dispose(
) → void - Clean up resources
-
encapsulate(
Uint8List publicKey) → KEMEncapsulationResult - Encapsulate a shared secret using the public key
-
generateKeyPair(
) → KEMKeyPair - Generate a key pair
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
String algorithmName) → KEM? - Create a new KEM instance with the specified algorithm
-
getSupportedKemAlgorithms(
) → List< String> - returns list of supported kem algorithms from liboqs
-
getSupportedKemAlgorithmsHardCodedList(
) → List< String> - Get hard coded list of supported KEM algorithms
-
isSupported(
String algorithmName) → bool - Check if a KEM algorithm is supported
-
printSupportedKemAlgorithms(
) → void - supported KEM algorithms by liboqs