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.java571 KeyPair keyPair = getKeyPair(context, alias); in getPrivateKey() local
572 if (keyPair != null) { in getPrivateKey()
573 return keyPair.getPrivate(); in getPrivateKey()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyPairGeneratorSpi.java471 KeyPair keyPair = loadKeystoreKeyPair(privateKeyAlias); in generateKeyPair() local
473 storeCertificateChain(flags, createCertificateChain(privateKeyAlias, keyPair)); in generateKeyPair()
476 return keyPair; in generateKeyPair()
490 private Iterable<byte[]> createCertificateChain(final String privateKeyAlias, KeyPair keyPair) in createCertificateChain() argument
510 return getAttestationChain(privateKeyAlias, keyPair, args); in createCertificateChain()
514 return Collections.singleton(generateSelfSignedCertificateBytes(keyPair)); in createCertificateChain()
604 private byte[] generateSelfSignedCertificateBytes(KeyPair keyPair) throws ProviderException { in generateSelfSignedCertificateBytes() argument
606 return generateSelfSignedCertificate(keyPair.getPrivate(), keyPair.getPublic()) in generateSelfSignedCertificateBytes()
617 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/tests/net/java/android/net/
DIkev2VpnProfileTest.java422 final KeyPair keyPair = keyPairGenerator.generateKeyPair(); in generateRandomCertAndKeyPair() local
431 certGen.setPublicKey(keyPair.getPublic()); in generateRandomCertAndKeyPair()
434 final X509Certificate cert = certGen.generate(keyPair.getPrivate(), "AndroidOpenSSL"); in generateRandomCertAndKeyPair()
435 return new CertificateAndKey(cert, keyPair.getPrivate()); in generateRandomCertAndKeyPair()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java4970 final KeyPair keyPair = KeyChain.getKeyPair(mContext, alias); in generateKeyPair() local
4981 return new AttestedKeyPair(keyPair, outputChain); in generateKeyPair()