HomeSort by relevance Sort by last modified time
    Searched full:privatekey (Results 101 - 125 of 400) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLKey.java 21 import java.security.PrivateKey;
83 public static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException {
103 private static OpenSSLKey wrapPrivateKey(PrivateKey key) throws InvalidKeyException {
169 public PrivateKey getPrivateKey() throws NoSuchAlgorithmException {
184 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type)
CryptoUpcalls.java 20 import java.security.PrivateKey;
58 public static byte[] rawSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) {
108 public static byte[] rawCipherWithPrivateKey(PrivateKey javaKey, boolean encrypt,
OpenSSLECDHKeyAgreement.java 23 import java.security.PrivateKey;
123 if (!(key instanceof PrivateKey)) {
127 OpenSSLKey openSslKey = OpenSSLKey.fromPrivateKey((PrivateKey) key);
OpenSSLRSAKeyFactory.java 23 import java.security.PrivateKey;
54 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException {
112 } else if (key instanceof PrivateKey
129 } else if (key instanceof PrivateKey && RSAPrivateKeySpec.class.isAssignableFrom(keySpec)) {
137 } else if (key instanceof PrivateKey
207 } else if ((key instanceof PrivateKey) && ("PKCS#8".equals(key.getFormat()))) {
OpenSSLEngine.java 21 import java.security.PrivateKey;
61 public PrivateKey getPrivateKeyById(String id) throws InvalidKeyException {
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
SignerTest.java 101 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData);
103 KeyPair kp = new KeyPair(publicKey, privateKey);
110 assertSame(privateKey, s.getPrivateKey());
KeyStore2Test.java 32 import java.security.PrivateKey;
52 static PrivateKey privateKey;
62 privateKey = keyPair.getPrivate();
147 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert);
276 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert);
307 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert);
367 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert);
368 PrivateKey returnedKey = (PrivateKey) keyTest.getKey("alias2", pssWord)
    [all...]
KeyFactory2Test.java 26 import java.security.PrivateKey;
92 // Test for method java.security.PrivateKey
111 PrivateKey privateKey = fact.generatePrivate(privateKeySpec);
113 .getEncoded(), privateKey.getEncoded());
262 PrivateKey privateKey = fact.generatePrivate(privateKeySpec);
267 .getEncoded(), privateKey.getEncoded());
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
KeyStoreTestSupport.java 24 import java.security.PrivateKey;
86 * Additional class to create PrivateKey object
88 public static class MyPrivateKey implements PrivateKey {
MyKeyPairGenerator1.java 28 import java.security.PrivateKey;
118 public class PrivKey implements PrivateKey {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
KeyFactorySpi.java 6 import java.security.PrivateKey;
83 protected PrivateKey engineGeneratePrivate(
133 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
DigestSignatureSpi.java 6 import java.security.PrivateKey;
92 PrivateKey privateKey)
95 if (!(privateKey instanceof RSAPrivateKey))
97 throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey instance");
100 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
  /external/openssl/patches/
0007-tls12_digests.patch 156 - (c->pkeys[SSL_PKEY_DSA_SIGN].privatekey != NULL))
158 + (c->pkeys[SSL_PKEY_DSA_SIGN].privatekey != NULL))
162 + return c->pkeys[SSL_PKEY_DSA_SIGN].privatekey;
168 if (c->pkeys[SSL_PKEY_RSA_SIGN].privatekey != NULL)
170 - else if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey != NULL)
172 + return c->pkeys[SSL_PKEY_RSA_SIGN].privatekey;
173 + if (c->pkeys[SSL_PKEY_RSA_ENC].privatekey != NULL)
174 + return c->pkeys[SSL_PKEY_RSA_ENC].privatekey;
177 (c->pkeys[SSL_PKEY_ECC].privatekey != NULL))
185 + return c->pkeys[SSL_PKEY_ECC].privatekey;
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
SignerTest.java 127 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData);
129 KeyPair kp = new KeyPair(publicKey, privateKey);
136 assertSame(privateKey, s.getPrivateKey());
  /libcore/luni/src/test/java/tests/targets/security/
SignatureTestMD2withRSA.java 22 import java.security.PrivateKey;
145 protected void engineInitSign(PrivateKey privateKey)
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
KeyStoreTestSupport.java 24 import java.security.PrivateKey;
87 * Additional class to create PrivateKey object
89 public static class MyPrivateKey implements PrivateKey {
MyKeyPairGenerator1.java 29 import java.security.PrivateKey;
120 public class PrivKey implements PrivateKey {
  /development/samples/KeyChainDemo/src/com/example/android/keychain/
KeyChainDemoActivity.java 36 import java.security.PrivateKey;
204 final PrivateKey privateKey = getPrivateKey(alias);
216 privateKeyTv.setText(privateKey.getFormat() + ":" + privateKey);
273 private PrivateKey getPrivateKey(String alias) {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
ECUtil.java 4 import java.security.PrivateKey;
167 PrivateKey key)
204 PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes));
206 if (privateKey instanceof java.security.interfaces.ECPrivateKey)
208 return ECUtil.generatePrivateKeyParameter(privateKey);
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
KeyManagerFactoryTest.java 23 import java.security.PrivateKey;
231 PrivateKey privateKey = km.getPrivateKey(alias);
236 keyAlgName = privateKey.getAlgorithm();
244 assertEquals(keyType, keyAlgName, privateKey.getAlgorithm());
260 privateKeyEntry.getPrivateKey(), privateKey);
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
X509ExtendedKeyManagerTest.java 22 import java.security.PrivateKey;
97 public PrivateKey getPrivateKey(String alias) {
  /external/chromium_org/net/android/java/src/org/chromium/net/
RemoteAndroidKeyStore.java 113 public long getOpenSSLHandleForPrivateKey(AndroidPrivateKey privateKey) {
120 public Object getOpenSSLEngineForPrivateKey(AndroidPrivateKey privateKey) {
  /libcore/luni/src/main/java/java/security/
KeyFactorySpi.java 45 * Generates a instance of {@code PrivateKey} from the given key
54 protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec)
  /external/chromium_org/third_party/tlslite/patches/
dhe_rsa.patch 221 + def __init__(self, cipherSuite, clientHello, serverHello, privateKey):
223 + Initializes the KeyExchange. privateKey is the signing private key.
228 + self.privateKey = privateKey
250 + premasterSecret = self.privateKey.decrypt(\
301 + serverKeyExchange.signature = self.privateKey.sign(
342 + privateKey)
347 + privateKey)
351 - certChain, privateKey,
368 - serverCertChain, privateKey,
    [all...]
  /device/asus/grouper/keymaster/
keymaster_grouper.cpp 403 ObjectHandle privateKey(&session, hPrivateKey);
404 ALOGV("public handle = 0x%x, private handle = 0x%x", publicKey.get(), privateKey.get());
606 ObjectHandle privateKey(&session, hPrivateKey);
608 ALOGV("public handle = 0x%x, private handle = 0x%x", publicKey.get(), privateKey.get());
620 ObjectHandle privateKey(&session);
622 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) {
731 ObjectHandle privateKey(&session);
733 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) {
738 CK_RV rv = C_DestroyObject(session.get(), privateKey.get());
771 ObjectHandle privateKey(&session)
    [all...]

Completed in 1365 milliseconds

1 2 3 45 6 7 8 91011>>