Decrypts the input bytes data using an encryptionAlgorithm and returns AtEncryptionResult.
If encryptionKeyType is EncryptionKeyType.rsa2048 then encryptionAlgorithm will be set to RsaEncryptionAlgokeyName 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.
Encrypts the input bytes data using an encryptionAlgorithm and returns AtEncryptionResult.
If encryptionKeyType is EncryptionKeyType.rsa2048 then encryptionAlgorithm will be set to RsaEncryptionAlgokeyName 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.
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.
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
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