KeyAlgorithm enum
Represents the different key algorithms supported by Askar.
Values
- aesA128Gcm → const KeyAlgorithm
-
AES with 128-bit GCM mode.
const KeyAlgorithm('a128gcm')
- aesA256Gcm → const KeyAlgorithm
-
AES with 256-bit GCM mode.
const KeyAlgorithm('a256gcm')
- aesA128CbcHs256 → const KeyAlgorithm
-
AES with 128-bit CBC mode and HMAC-SHA-256.
const KeyAlgorithm('a128cbchs256')
- aesA256CbcHs512 → const KeyAlgorithm
-
AES with 256-bit CBC mode and HMAC-SHA-512.
const KeyAlgorithm('a256cbchs512')
- aesA128Kw → const KeyAlgorithm
-
AES with 128-bit key wrapping.
const KeyAlgorithm('a128kw')
- aesA256Kw → const KeyAlgorithm
-
AES with 256-bit key wrapping.
const KeyAlgorithm('a256kw')
- bls12381G1 → const KeyAlgorithm
-
BLS12-381 curve, G1 subgroup.
const KeyAlgorithm('bls12381g1')
- bls12381G2 → const KeyAlgorithm
-
BLS12-381 curve, G2 subgroup.
const KeyAlgorithm('bls12381g2')
- bls12381G1G2 → const KeyAlgorithm
-
BLS12-381 curve, both G1 and G2 subgroups.
const KeyAlgorithm('bls12381g1g2')
- chacha20C20P → const KeyAlgorithm
-
ChaCha20 with Poly1305.
const KeyAlgorithm('c20p')
- chacha20XC20P → const KeyAlgorithm
-
XChaCha20 with Poly1305.
const KeyAlgorithm('xc20p')
- ed25519 → const KeyAlgorithm
-
Ed25519 signature algorithm.
const KeyAlgorithm('ed25519')
- x25519 → const KeyAlgorithm
-
X25519 key exchange algorithm.
const KeyAlgorithm('x25519')
- ecSecp256k1 → const KeyAlgorithm
-
Elliptic Curve SECP256K1.
const KeyAlgorithm('k256')
- ecSecp256r1 → const KeyAlgorithm
-
Elliptic Curve SECP256R1.
const KeyAlgorithm('p256')
- ecSecp384r1 → const KeyAlgorithm
-
Elliptic Curve SECP384R1.
const KeyAlgorithm('p384')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string value associated with the key algorithm.
final
Methods
-
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
-
fromString(
String algorithm) → KeyAlgorithm -
Returns the KeyAlgorithm corresponding to the given string
algorithm
.
Constants
-
values
→ const List<
KeyAlgorithm> - A constant List of the values in this enum, in order of their declaration.