-
Notifications
You must be signed in to change notification settings - Fork 26
IBiometricCrypto
Gulam Ali H. edited this page Aug 22, 2025
·
3 revisions
| Method | Android Native Mapping | iOS/macOS Native Mapping | Windows Mapping | Notes / Platform Limitations |
|---|---|---|---|---|
CreateKeyAsync |
KeyPairGenerator or KeyGenerator in Android Keystore / StrongBox |
SecKeyCreateRandomKey (Keychain / Secure Enclave) |
Generates asymmetric or symmetric keys, depending on configuration | |
DeleteKeyAsync |
Delete from Android Keystore / StrongBox | Delete from Keychain / Secure Enclave | Removes key to allow rotation or cleanup | |
KeyExistsAsync |
Check in Android Keystore / StrongBox | Check in Keychain / Secure Enclave | Returns boolean if key exists | |
EncryptAsync |
Cipher wrapped in BiometricPrompt.CryptoObject
|
SecKeyCreateEncryptedData (Secure Enclave / Keychain) |
Works for symmetric or asymmetric keys; must match algorithm | |
DecryptAsync |
Cipher wrapped in BiometricPrompt.CryptoObject
|
SecKeyCreateDecryptedData (Secure Enclave / Keychain) |
Must match encryption algorithm and key type | |
SignAsync |
Signature wrapped in BiometricPrompt.CryptoObject
|
SecKeyCreateSignature (Secure Enclave / Keychain) |
Supports signing with EC or RSA keys | |
VerifyAsync |
Signature wrapped in BiometricPrompt.CryptoObject
|
SecKeyVerifySignature (Secure Enclave / Keychain) |
Verifies data against signature | |
MacAsync |
Mac wrapped in BiometricPrompt.CryptoObject
|
Not supported directly; fallback returns failure | iOS/macOS requires software fallback (e.g., HMAC in .NET) |