HomeSort by relevance Sort by last modified time
    Searched refs:KeyFactory (Results 1 - 25 of 235) sorted by null

1 2 3 4 5 6 7 8 910

  /libcore/luni/src/test/java/tests/security/interfaces/
RSAPrivateKeyTest.java 21 import java.security.KeyFactory;
32 KeyFactory gen = KeyFactory.getInstance("RSA");
RSAPublicKeyTest.java 21 import java.security.KeyFactory;
32 KeyFactory gen = KeyFactory.getInstance("RSA");
RSAKeyTest.java 21 import java.security.KeyFactory;
36 KeyFactory gen = KeyFactory.getInstance("RSA");
RSAPrivateCrtKeyTest.java 20 import java.security.KeyFactory;
29 KeyFactory gen = KeyFactory.getInstance("RSA");
  /system/keymaster/include/keymaster/
key_factory.h 31 * KeyFactory is a abstraction that encapsulats the knowledge of how to build and parse a specifiec
34 class KeyFactory {
36 explicit KeyFactory(const KeymasterContext* context) : context_(context) {}
37 virtual ~KeyFactory() {}
asymmetric_key_factory.h 28 class AsymmetricKeyFactory : public KeyFactory {
30 explicit AsymmetricKeyFactory(const KeymasterContext* context) : KeyFactory(context) {}
soft_keymaster_context.h 63 KeyFactory* GetKeyFactory(keymaster_algorithm_t algorithm) const override;
119 std::unique_ptr<KeyFactory> rsa_factory_;
120 std::unique_ptr<KeyFactory> ec_factory_;
121 std::unique_ptr<KeyFactory> aes_factory_;
122 std::unique_ptr<KeyFactory> hmac_factory_;
  /libcore/support/src/test/java/tests/security/
KeyFactoryTest.java 19 import java.security.KeyFactory;
34 private KeyFactory factory;
49 private KeyFactory getFactory() throws Exception {
50 return KeyFactory.getInstance(algorithmName);
  /libcore/ojluni/src/main/java/java/security/
KeyRep.java 50 * @see KeyFactory
152 * <li> Type.PUBLIC/"X.509" - gets a KeyFactory instance for
155 * <li> Type.PRIVATE/"PKCS#8" - gets a KeyFactory instance for
174 KeyFactory f = KeyFactory.getInstance(algorithm);
177 KeyFactory f = KeyFactory.getInstance(algorithm);
KeyFactory.java 62 * KeyFactory keyFactory = KeyFactory.getInstance("DSA");
63 * PublicKey bobPubKey = keyFactory.generatePublic(bobPubKeySpec);
70 * <p> Android provides the following <code>KeyFactory</code> algorithms:
103 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyFactory">
104 * KeyFactory section</a> of the
119 public class KeyFactory {
122 Debug.getInstance("jca", "KeyFactory");
141 * Creates a KeyFactory object
    [all...]
  /tools/apksig/src/test/java/com/android/apksig/internal/util/
Resources.java 21 import java.security.KeyFactory;
93 // Keep overly strictly linter happy by limiting what JCA KeyFactory algorithms are used
95 KeyFactory keyFactory;
98 keyFactory = KeyFactory.getInstance("rsa");
101 keyFactory = KeyFactory.getInstance("dsa");
104 keyFactory = KeyFactory.getInstance("ec")
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyFactory2Test.java 22 import java.security.KeyFactory;
44 private static final String KEYFACTORY_ID = "KeyFactory.";
94 Provider[] providers = Security.getProviders("KeyFactory.DSA");
103 fail("No providers support KeyFactory.DSA");
109 // java.security.KeyFactory.generatePrivate(java.security.spec.KeySpec)
111 KeyFactory fact = KeyFactory.getInstance(keyfactAlgs[i], providerName);
137 // java.security.KeyFactory.generatePublic(java.security.spec.KeySpec)
139 KeyFactory fact = KeyFactory.getInstance(keyfactAlgs[i]
    [all...]
KeyFactoryTest.java 9 import java.security.KeyFactory;
54 KeyFactory factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME);
75 KeyFactory.getInstance(algorithm);
88 KeyFactory factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME, TEST_PROVIDER_NAME);
119 KeyFactory.getInstance(combination[0], combination[1]);
131 KeyFactory factory = KeyFactory.getInstance(TEST_KEYFACTORY_NAME, provider);
167 KeyFactory.getInstance(algorithm, provider)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DefaultJcaJceHelper.java 5 import java.security.KeyFactory;
65 public KeyFactory createKeyFactory(String algorithm)
68 return KeyFactory.getInstance(algorithm);
NamedJcaJceHelper.java 5 import java.security.KeyFactory;
72 public KeyFactory createKeyFactory(String algorithm)
75 return KeyFactory.getInstance(algorithm, providerName);
ProviderJcaJceHelper.java 5 import java.security.KeyFactory;
72 public KeyFactory createKeyFactory(String algorithm)
75 return KeyFactory.getInstance(algorithm, provider);
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java 21 import java.security.KeyFactory;
52 KeyFactory keyFact = KeyFactory.getInstance("DH");
  /libcore/luni/src/test/java/tests/security/spec/
EncodedKeySpec2Test.java 23 import java.security.KeyFactory;
45 KeyFactory fact = KeyFactory.getInstance("DSA");
  /cts/tests/tests/keystore/src/android/keystore/cts/
KeyFactoryTest.java 29 import java.security.KeyFactory;
69 // Assert that Android Keystore Provider exposes exactly the expected KeyFactory algorithms.
81 if ("KeyFactory".equalsIgnoreCase(service.getType())) {
120 KeyFactory keyFactory = getKeyFactory(algorithm);
121 KeyInfo keyInfo = keyFactory.getKeySpec(keyPair.getPrivate(), KeyInfo.class);
162 KeyFactory keyFactory = getKeyFactory(algorithm);
164 keyFactory.getKeySpec(keyPair.getPublic(), KeyInfo.class);
191 KeyFactory keyFactory = getKeyFactory(algorithm)
    [all...]
KeyInfoTest.java 25 import java.security.KeyFactory;
60 KeyFactory keyFactory = KeyFactory.getInstance(key.getAlgorithm(), "AndroidKeyStore");
61 KeyInfo info = keyFactory.getKeySpec(key, KeyInfo.class);
  /system/keymaster/
symmetric_key.h 28 class SymmetricKeyFactory : public KeyFactory {
30 explicit SymmetricKeyFactory(const KeymasterContext* context) : KeyFactory(context) {}
  /external/wycheproof/java/com/google/security/wycheproof/testcases/
EcKeyTest.java 26 import java.security.KeyFactory;
43 * can validate a public key: some parameters are typically validated by the KeyFactory, more
48 * that KeyFactory.generatePublic recognizes the problem. The documentation simply claims that an
131 KeyFactory kf = KeyFactory.getInstance("EC");
153 KeyFactory kf = KeyFactory.getInstance("EC");
RsaKeyTest.java 20 import java.security.KeyFactory;
    [all...]
RsaSignatureTest.java 20 import java.security.KeyFactory;
    [all...]
  /external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/
RandomPrivateKeyX509ExtendedKeyManager.java 21 import java.security.KeyFactory;
50 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm);
53 keyFactory.getKeySpec(originalPrivateKey, RSAPrivateKeySpec.class);
66 keyFactory.getKeySpec(originalPrivateKey, DSAPrivateKeySpec.class);

Completed in 898 milliseconds

1 2 3 4 5 6 7 8 910