Home
last modified time | relevance | path

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

/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()
485 private Iterable<byte[]> createCertificateChain(final String privateKeyAlias, KeyPair keyPair) in createCertificateChain() argument
491 return getAttestationChain(privateKeyAlias, keyPair, args); in createCertificateChain()
495 return Collections.singleton(generateSelfSignedCertificateBytes(keyPair)); in createCertificateChain()
586 private byte[] generateSelfSignedCertificateBytes(KeyPair keyPair) throws ProviderException { in generateSelfSignedCertificateBytes() argument
588 return generateSelfSignedCertificate(keyPair.getPrivate(), keyPair.getPublic()) in generateSelfSignedCertificateBytes()
599 KeyPair keyPair, KeymasterArguments args) in getAttestationChain() argument
DAndroidKeyStoreProvider.java269 KeyPair keyPair = loadAndroidKeyStoreKeyPairFromKeystore(keyStore, privateKeyAlias, uid); in loadAndroidKeyStorePrivateKeyFromKeystore() local
270 return (AndroidKeyStorePrivateKey) keyPair.getPrivate(); in loadAndroidKeyStorePrivateKeyFromKeystore()
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyStoreTest.java1920 KeyPair keyPair = AndroidKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore( in generateCertificate() local
1924 certGen.setPublicKey(keyPair.getPublic()); in generateCertificate()
1932 final X509Certificate cert = certGen.generate(keyPair.getPrivate()); in generateCertificate()