Home
last modified time | relevance | path

Searched refs:keyPair (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java286 KeyPair keyPair = SecureBox.genKeyPair(); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() local
292 keyPair.getPublic(), in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant()
299 keyPair.getPrivate(), in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant()
308 KeyPair keyPair = SecureBox.genKeyPair(); in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge() local
313 keyPair.getPublic(), in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()
321 keyPair.getPrivate(), in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge()
360 KeyPair keyPair = SecureBox.genKeyPair(); in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectVaultParams() local
365 keyPair.getPublic(), in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectVaultParams()
373 keyPair.getPrivate(), in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectVaultParams()
386 KeyPair keyPair = SecureBox.genKeyPair(); in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectHeader() local
[all …]
/frameworks/base/keystore/java/android/security/
DAttestedKeyPair.java41 public AttestedKeyPair(KeyPair keyPair, Certificate[] attestationRecord) { in AttestedKeyPair() argument
42 mKeyPair = keyPair; in AttestedKeyPair()
DKeyChain.java561 KeyPair keyPair = getKeyPair(context, alias); in getPrivateKey() local
562 if (keyPair != null) { in getPrivateKey()
563 return keyPair.getPrivate(); in getPrivateKey()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeKePayload.java178 KeyPair keyPair = dhKeyPairGen.generateKeyPair(); in IkeKePayload() local
180 DHPrivateKey privateKey = (DHPrivateKey) keyPair.getPrivate(); in IkeKePayload()
183 DHPublicKey publicKey = (DHPublicKey) keyPair.getPublic(); in IkeKePayload()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyPairGeneratorSpi.java472 KeyPair keyPair = loadKeystoreKeyPair(privateKeyAlias); in generateKeyPair() local
474 storeCertificateChain(flags, createCertificateChain(privateKeyAlias, keyPair)); in generateKeyPair()
477 return keyPair; in generateKeyPair()
491 private Iterable<byte[]> createCertificateChain(final String privateKeyAlias, KeyPair keyPair) in createCertificateChain() argument
497 return getAttestationChain(privateKeyAlias, keyPair, args); in createCertificateChain()
501 return Collections.singleton(generateSelfSignedCertificateBytes(keyPair)); in createCertificateChain()
591 private byte[] generateSelfSignedCertificateBytes(KeyPair keyPair) throws ProviderException { in generateSelfSignedCertificateBytes() argument
593 return generateSelfSignedCertificate(keyPair.getPrivate(), keyPair.getPublic()) in generateSelfSignedCertificateBytes()
604 KeyPair keyPair, KeymasterArguments args) in getAttestationChain() argument
DAndroidKeyStoreProvider.java316 KeyPair keyPair = loadAndroidKeyStoreKeyPairFromKeystore(keyStore, privateKeyAlias, uid, in loadAndroidKeyStorePrivateKeyFromKeystore() local
318 return (AndroidKeyStorePrivateKey) keyPair.getPrivate(); in loadAndroidKeyStorePrivateKeyFromKeystore()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4952 final KeyPair keyPair = KeyChain.getKeyPair(mContext, alias); in generateKeyPair() local
4963 return new AttestedKeyPair(keyPair, outputChain); in generateKeyPair()