Searched refs:privateKey (Results 1 - 25 of 34) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DAsymmetricKeyParameter.java8 boolean privateKey; field in class:AsymmetricKeyParameter
11 boolean privateKey)
13 this.privateKey = privateKey;
18 return privateKey;
10 AsymmetricKeyParameter( boolean privateKey) argument
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLSignatureRawRSA.java85 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { argument
86 if (privateKey instanceof OpenSSLRSAPrivateKey) {
87 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey;
89 } else if (privateKey instanceof RSAPrivateCrtKey) {
90 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey;
92 } else if (privateKey instanceof RSAPrivateKey) {
93 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey;
H A DOpenSSLECPrivateKey.java81 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, argument
84 if (privateKey instanceof ECKey) {
85 params = ((ECKey) privateKey).getParams();
90 throw new InvalidKeyException("EC parameters not available. Private: " + privateKey
93 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, params);
101 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, argument
104 if (privateKey instanceof ECKey) {
105 params = ((ECKey) privateKey).getParams();
109 throw new InvalidKeyException("EC parameters not available: " + privateKey);
120 NativeCrypto.getECPrivateKeyWrapper(privateKey, grou
[all...]
H A DOpenSSLKey.java105 * @param privateKey private key.
110 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException {
111 OpenSSLKey result = getOpenSSLKey(privateKey);
116 result = fromKeyMaterial(privateKey);
121 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
188 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, argument
190 String keyAlgorithm = privateKey.getAlgorithm();
192 return OpenSSLRSAPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
194 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
109 fromPrivateKeyForTLSStackOnly( PrivateKey privateKey, PublicKey publicKey) argument
H A DOpenSSLRSAPrivateKey.java110 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, argument
113 if (privateKey instanceof RSAKey) {
114 modulus = ((RSAKey) privateKey).getModulus();
119 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKey
123 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true);
H A DOpenSSLSignature.java137 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { argument
138 initInternal(OpenSSLKey.fromPrivateKey(privateKey), true);
H A DOpenSSLSocketImpl.java943 * @param privateKey private key (enables TLS Channel ID) or {@code null} for no key (disables
950 public void setChannelIdPrivateKey(PrivateKey privateKey) { argument
963 if (privateKey == null) {
970 if (privateKey instanceof ECKey) {
971 ecParams = ((ECKey) privateKey).getParams();
979 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams);
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DSignerTest.java101 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData);
103 KeyPair kp = new KeyPair(publicKey, privateKey);
110 assertSame(privateKey, s.getPrivateKey());
H A DKeyStorePrivateKeyEntryTest.java69 PrivateKey privateKey = keyPair.getPrivate();
74 privateKey, new Certificate[] { certificate });
H A DKeyStore2Test.java52 static PrivateKey privateKey; field in class:KeyStore2Test
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);
370 byte[] priB = privateKey.getEncoded();
373 .equals(privateKey.getAlgorithm());
374 equality &= returnedKey.getFormat().equals(privateKey.getFormat());
432 keyTest.setKeyEntry("alias2", privateKey, pssWor
[all...]
H A DKeyFactory2Test.java111 PrivateKey privateKey = fact.generatePrivate(privateKeySpec);
113 .getEncoded(), privateKey.getEncoded());
262 PrivateKey privateKey = fact.generatePrivate(privateKeySpec);
267 .getEncoded(), privateKey.getEncoded());
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DPrivateKeyInfo.java53 ASN1Encodable privateKey)
56 this(algId, privateKey, null);
61 ASN1Encodable privateKey,
65 this.privKey = new DEROctetString(privateKey.toASN1Primitive().getEncoded(ASN1Encoding.DER));
139 * privateKey PrivateKey,
51 PrivateKeyInfo( AlgorithmIdentifier algId, ASN1Encodable privateKey) argument
59 PrivateKeyInfo( AlgorithmIdentifier algId, ASN1Encodable privateKey, ASN1Set attributes) argument
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
H A DJcaContentSignerBuilder.java56 public ContentSigner build(PrivateKey privateKey) argument
65 sig.initSign(privateKey, random);
69 sig.initSign(privateKey);
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DMySignature2.java49 protected void engineInitSign(PrivateKey privateKey) argument
H A DMySignature1.java64 protected void engineInitSign(PrivateKey privateKey) argument
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
H A DKeyPairTest.java46 PrivateKeyStub privateKey = new PrivateKeyStub("privateAlgorithm",
51 keyPair = new KeyPair(publicKey, privateKey);
/external/oauth/core/src/main/java/net/oauth/signature/
H A DRSA_SHA1.java89 private PrivateKey privateKey = null; field in class:RSA_SHA1
101 privateKey = (PrivateKey)privateKeyObject;
103 privateKey = getPrivateKeyFromPem((String)privateKeyObject);
105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject);
216 if (privateKey == null) {
222 signer.initSign(privateKey);
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/
H A DDigitalSignatureTest.java79 PrivateKey privateKey = keyFactory
122 dsig.init(privateKey);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
H A DDSASigner.java95 PrivateKey privateKey,
100 engineInitSign(privateKey);
104 PrivateKey privateKey)
109 param = DSAUtil.generatePrivateKeyParameter(privateKey);
94 engineInitSign( PrivateKey privateKey, SecureRandom random) argument
103 engineInitSign( PrivateKey privateKey) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
H A DDigestSignatureSpi.java93 PrivateKey privateKey)
96 if (!(privateKey instanceof RSAPrivateKey))
98 throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey instance");
101 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
92 engineInitSign( PrivateKey privateKey) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
H A DSignatureSpi.java58 PrivateKey privateKey)
61 CipherParameters param = ECUtil.generatePrivateKeyParameter(privateKey);
57 engineInitSign( PrivateKey privateKey) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
H A DECUtil.java207 PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes));
209 if (privateKey instanceof java.security.interfaces.ECPrivateKey)
211 return ECUtil.generatePrivateKeyParameter(privateKey);
/external/boringssl/src/crypto/ec/
H A Dec_asn1.c135 ASN1_OCTET_STRING *privateKey; member in struct:ec_privatekey_st
155 ASN1_SIMPLE(EC_PRIVATEKEY, privateKey, ASN1_OCTET_STRING),
317 if (priv_key->privateKey) {
319 BN_bin2bn(M_ASN1_STRING_data(priv_key->privateKey),
320 M_ASN1_STRING_length(priv_key->privateKey), ret->priv_key);
414 if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len)) {
/external/conscrypt/src/stub/java/com/android/org/conscrypt/
H A DOpenSSLSocketImpl.java175 public void setChannelIdPrivateKey(PrivateKey privateKey) { argument
/external/conscrypt/src/stub/java/org/apache/harmony/xnet/xnet/provider/jsse/
H A DOpenSSLSocketImpl.java175 public void setChannelIdPrivateKey(PrivateKey privateKey) { argument

Completed in 259 milliseconds

12