Searched refs:keySpec (Results 1 – 8 of 8) sorted by relevance
61 EncodedKeySpec keySpec; in createKey() local64 keySpec = new X509EncodedKeySpec(key); in createKey()71 return factory.generatePublic(keySpec); in createKey()
78 UnencodableSecretKeySpec keySpec = in create_withUnencodableSecretKey_throwsInvalidKeyException() local81 assertThrows(InvalidKeyException.class, () -> new FingerprintMixer(keySpec, randomSalt())); in create_withUnencodableSecretKey_throwsInvalidKeyException()
143 PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(derKey); in createKey() local145 return (PrivateKey) keyFactory.generatePrivate(keySpec); in createKey()
225 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException { in engineGenerateSecret() argument
178 in ParcelableKeyGenParameterSpec keySpec, in generateKeyPair() argument
4952 @NonNull String algorithm, @NonNull KeyGenParameterSpec keySpec, in generateKeyPair() argument4957 new ParcelableKeyGenParameterSpec(keySpec); in generateKeyPair()4969 final String alias = keySpec.getKeystoreAlias(); in generateKeyPair()
5726 EncodedKeySpec keySpec; in parsePublicKey() local5729 keySpec = new X509EncodedKeySpec(encoded); in parsePublicKey()5738 return keyFactory.generatePublic(keySpec); in parsePublicKey()5748 return keyFactory.generatePublic(keySpec); in parsePublicKey()5758 return keyFactory.generatePublic(keySpec); in parsePublicKey()
5836 final KeyGenParameterSpec keySpec = parcelableKeySpec.getSpec(); in generateKeyPair() local5837 final String alias = keySpec.getKeystoreAlias(); in generateKeyPair()5843 if (keySpec.getUid() != KeyStore.UID_SELF) { in generateKeyPair()5848 if (deviceIdAttestationRequired && (keySpec.getAttestationChallenge() == null)) { in generateKeyPair()5863 new KeyGenParameterSpec.Builder(keySpec) in generateKeyPair()5889 final byte[] attestationChallenge = keySpec.getAttestationChallenge(); in generateKeyPair()