DES_SMCipher class

Implemented types

Constructors

DES_SMCipher(Uint8List encKey, Uint8List macKey)

Properties

cipherAlgorithm → CipherAlgorithm
Returns cipher algorithm.
no setteroverride
encKey Uint8List
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
macKey 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 edata, {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, {SSC? ssc}) 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