AtChopsImpl class

Inheritance

Constructors

AtChopsImpl(AtChopsKeys atChopsKeys)

Properties

atChopsKeys AtChopsKeys
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decryptBytes(Uint8List data, EncryptionKeyType encryptionKeyType, {AtEncryptionAlgorithm? encryptionAlgorithm, String? keyName, InitialisationVector? iv}) AtEncryptionResult
Decrypts the input bytes data using an encryptionAlgorithm and returns AtEncryptionResult. If encryptionKeyType is EncryptionKeyType.rsa2048 then encryptionAlgorithm will be set to RsaEncryptionAlgo keyName specifies which key pair to use if user has multiple key pairs configured. If keyName is not passed default encryption/decryption keypair from .atKeys file will be used.
override
decryptString(String data, EncryptionKeyType encryptionKeyType, {AtEncryptionAlgorithm? encryptionAlgorithm, String? keyName, InitialisationVector? iv}) AtEncryptionResult
Decode the encrypted string to base64. Decode the encrypted byte to utf8 to support emoji chars.
override
encryptBytes(Uint8List data, EncryptionKeyType encryptionKeyType, {AtEncryptionAlgorithm? encryptionAlgorithm, String? keyName, InitialisationVector? iv}) AtEncryptionResult
Encrypts the input bytes data using an encryptionAlgorithm and returns AtEncryptionResult. If encryptionKeyType is EncryptionKeyType.rsa2048 then encryptionAlgorithm will be set to RsaEncryptionAlgo keyName specifies which key pair to use if user has multiple key pairs configured. If keyName is not passed default encryption/decryption keypair from .atKeys file will be used.
override
encryptString(String data, EncryptionKeyType encryptionKeyType, {AtEncryptionAlgorithm? encryptionAlgorithm, String? keyName, InitialisationVector? iv}) AtEncryptionResult
Encode the input string to utf8 to support emoji chars. Encode the encrypted bytes to base64.
override
hash(Uint8List signedData, AtHashingAlgorithm hashingAlgorithm) String
Create a hash of input signedData using a hashingAlgorithm. Refer to DefaultHash for default implementation of hashing.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readPublicKey(String publicKeyId) String
Reads a public key from a secure element or any other source Clients can implement this method if want to use a different keypair for pkam authentication. e.g. Secure element can be a SIM card with an IOTSafe compliant app with a key pair preinstalled.
override
sign(AtSigningInput signingInput) AtSigningResult
Compute data signature using the private key from a key pair Input has to be set using AtSigningInput object Please refer to AtSigningInput to create a valid input instance AtSigningResult.result should be base64Encoded
override
toString() String
A string representation of this object.
inherited
verify(AtSigningVerificationInput verifyInput) AtSigningResult
Verifies the signature computed for inpuat data using the public key from a key pair Input has to set using AtSigningVerificationInput object Please refer to AtSigningVerificationInput docs to create a valid input instance AtSigningVerificationInput.result should be base64Decoded if AtSigningResult.result is base64Encoded
override

Operators

operator ==(Object other) bool
The equality operator.
inherited