-
- Downloads
Keystore: Wire X25519 key agreement
Implement support for the X25519 key agreement functionality. Similar to Ed25519, two new classes are added: * AndroidKeyStoreXDHPrivateKey * AndroidKeyStoreXDHPublicKey The private key class is simply a handle to the KeyMint key. The public key class implements XECPublicKey, the interface needed for using this key in a platform-backed key agreement. Because of Conscrypt API boundaries, the functionality of Conscrypt's OpenSSLX25519PublicKey is duplicated here - namely, matching the prefix of the encoded key. Bug: 194359292 Test: atest android.keystore.cts.Curve25519Test Change-Id: Ifc12be528ab544fd6909bb0dd6224a0a4dd400c6
Showing
- keystore/java/android/security/keystore2/AndroidKeyStoreKeyAgreementSpi.java 11 additions, 0 deletions...id/security/keystore2/AndroidKeyStoreKeyAgreementSpi.java
- keystore/java/android/security/keystore2/AndroidKeyStoreProvider.java 3 additions, 2 deletions...a/android/security/keystore2/AndroidKeyStoreProvider.java
- keystore/java/android/security/keystore2/AndroidKeyStoreXDHPrivateKey.java 47 additions, 0 deletions...roid/security/keystore2/AndroidKeyStoreXDHPrivateKey.java
- keystore/java/android/security/keystore2/AndroidKeyStoreXDHPublicKey.java 120 additions, 0 deletions...droid/security/keystore2/AndroidKeyStoreXDHPublicKey.java
Please register or sign in to comment