Exposing the underlaying API for key exchange would increase the usability of this package tremendously!
With a key exchange two parties can use the Secure Enclave to create a symmetric key independently (ECDH). This is a very safe way to do so, to exchange encrypted data.
You can leverage these API endpoints:
Android: android.security.keystore.KeyAgreement with the PrivateKey obtained from the AndroidKeyStore.
iOS: SecKeyCopyKeyExchangeResult from Security.framework using the SecKeyRef for the specified alias.
Thanks for considering!
Exposing the underlaying API for key exchange would increase the usability of this package tremendously!
With a key exchange two parties can use the Secure Enclave to create a symmetric key independently (ECDH). This is a very safe way to do so, to exchange encrypted data.
You can leverage these API endpoints:
Android: android.security.keystore.KeyAgreement with the PrivateKey obtained from the AndroidKeyStore.
iOS: SecKeyCopyKeyExchangeResult from Security.framework using the SecKeyRef for the specified alias.
Thanks for considering!