AES_SMCipher class

Implemented types

Constructors

AES_SMCipher(Uint8List KSenc, Uint8List KSmac, {required KEY_LENGTH size})

Properties

cipher AESCipher
getter/setter pair
cipherAlgorithm → CipherAlgorithm
Returns cipher algorithm.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
KSenc Uint8List
getter/setter pair
KSmac Uint8List
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ↔ CipherAlgorithm
getter/setter pairoverride

Methods

decrypt(Uint8List data, {SSC? ssc}) Uint8List
Decrypts edata from Secure Messaging. edata must be unpadded after calling this function. ssc is used as IV for encryption.
override
encrypt(Uint8List data, {SSC? ssc}) Uint8List
Encrypts data to be used in Secure Messaging. data must be padded (if needed) before calling this function. ssc is used as IV for encryption.
override
mac(Uint8List data) Uint8List
Calculates MAC of data. data must be padded (if needed) before calling this function.
override
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