decrypt
Performs a biometric authentication challenge bound to the key identified by keyAlias, then uses that key to decrypt encryptedData and returns the result.
Use this overload for ciphers that do not require an initialization vector (e.g. RSA/OAEP). For ciphers that require one (e.g. AES/GCM), use the decrypt overload that accepts an iv.
Return
Result.success with the decrypted ByteArray if authentication and decryption succeed; Result.failure wrapping a BiometricAuthenticationException if the challenge fails, errors, or is canceled.
Parameters
the bytes to decrypt after successful authentication.
identifies the previously provisioned key to use for decryption (mirrors Credential.Security.keyAlias). The implementation resolves any platform-specific cipher/key material for this alias internally — no Cipher or key object is passed by the caller.
Performs a biometric authentication challenge bound to the key identified by keyAlias, then uses that key and iv to decrypt encryptedData and returns the result.
This is a distinct abstract overload — not a defaulted/nullable iv parameter on the overload above — so that ciphers requiring an initialization vector (e.g. AES/GCM) are supported without relying on Kotlin default parameter values on an interface method, which are not visible to Java callers as separate overloads without compiling with -Xjvm-default.
Return
Result.success with the decrypted ByteArray if authentication and decryption succeed; Result.failure wrapping a BiometricAuthenticationException if the challenge fails, errors, or is cancelled.
Parameters
the bytes to decrypt after successful authentication.
identifies the previously provisioned key to use for decryption (mirrors Credential.Security.keyAlias).
the initialization vector produced at encryption time for encryptedData.