AesCbcSecretKey class Null safety

AES secret key for symmetric encryption and decryption using AES in Cipher Block Chaining mode (CBC-mode), as described in NIST SP800-38A.

Encrypted messages are always padded in PKCS#7 mode, as described in RFC 2315 Section 10.3 step 2. This padding is stripped when the message is decrypted.

Instances of AesCbcSecretKey can be imported using AesCbcSecretKey.importRawKey and AesCbcSecretKey.importJsonWebKey, or generated using AesCbcSecretKey.generateKey.

Annotations

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

decryptBytes(List<int> data, List<int> iv) Future<Uint8List>
decryptStream(Stream<List<int>> data, List<int> iv) Stream<Uint8List>
encryptBytes(List<int> data, List<int> iv) Future<Uint8List>
encryptStream(Stream<List<int>> data, List<int> iv) Stream<Uint8List>
exportJsonWebKey() Future<Map<String, dynamic>>
exportRawKey() Future<Uint8List>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

generateKey(int length) Future<AesCbcSecretKey>
importJsonWebKey(Map<String, dynamic> jwk) Future<AesCbcSecretKey>
importRawKey(List<int> keyData) Future<AesCbcSecretKey>
Import an AesCbcSecretKey from raw keyData.