AesKeySize enum
Supported key sizes for AES encryption.
AES supports three key sizes, each providing different security levels:
- 128 bits (16 bytes): Good security, fastest performance
- 192 bits (24 bytes): Better security, moderate performance
- 256 bits (32 bytes): Best security, slowest performance
Values
- bits128 → const AesKeySize
-
128-bit key (16 bytes).
const AesKeySize(16, 128) - bits192 → const AesKeySize
-
192-bit key (24 bytes).
const AesKeySize(24, 192) - bits256 → const AesKeySize
-
256-bit key (32 bytes).
const AesKeySize(32, 256)
Properties
- bits → int
-
The key size in bits.
final
- bytes → int
-
The key size in bytes.
final
- 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
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
-
fromBytes(
int byteLength) → AesKeySize - Returns the AesKeySize for the given byte length.
Constants
-
supportedBits
→ const List<
int> - List of all supported key sizes in bits.
-
supportedBytes
→ const List<
int> - List of all supported key sizes in bytes.
-
values
→ const List<
AesKeySize> - A constant List of the values in this enum, in order of their declaration.