Searched defs:privateKey (Results 1 - 25 of 36) 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/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/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/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.java128 * @param privateKey private key.
133 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException {
134 OpenSSLKey result = getOpenSSLKey(privateKey);
139 result = fromKeyMaterial(privateKey);
144 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
211 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, argument
213 String keyAlgorithm = privateKey.getAlgorithm();
215 return OpenSSLRSAPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
217 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
132 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.java203 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { argument
204 initInternal(OpenSSLKey.fromPrivateKey(privateKey), true);
H A DOpenSSLSocketImpl.java1001 * @param privateKey private key (enables TLS Channel ID) or {@code null} for no key (disables
1008 public void setChannelIdPrivateKey(PrivateKey privateKey) { argument
1021 if (privateKey == null) {
1028 if (privateKey instanceof ECKey) {
1029 ecParams = ((ECKey) privateKey).getParams();
1037 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams);
/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/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DMySignature1.java64 protected void engineInitSign(PrivateKey privateKey) argument
H A DMySignature2.java49 protected void engineInitSign(PrivateKey privateKey) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
H A DDSASigner.java99 PrivateKey privateKey,
104 engineInitSign(privateKey);
108 PrivateKey privateKey)
113 param = DSAUtil.generatePrivateKeyParameter(privateKey);
98 engineInitSign( PrivateKey privateKey, SecureRandom random) argument
107 engineInitSign( PrivateKey privateKey) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
H A DDigestSignatureSpi.java94 PrivateKey privateKey)
97 if (!(privateKey instanceof RSAPrivateKey))
99 throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey instance");
102 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
93 engineInitSign( PrivateKey privateKey) argument
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
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...]
/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),
319 if (priv_key->privateKey) {
321 BN_bin2bn(M_ASN1_STRING_data(priv_key->privateKey),
322 M_ASN1_STRING_length(priv_key->privateKey), ret->priv_key);
422 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
/external/tpm2/
H A DCryptoEngine.h169 TPM2B_ECC_PARAMETER *privateKey; // Pointer to the private key member in struct:__anon18103
182 TPM2B *privateKey; // The private exponent (not a prime) member in struct:__anon18104
/external/conscrypt/src/compat/java/org/conscrypt/
H A DKitKatPlatformOpenSSLSocketImplAdapter.java410 public void setChannelIdPrivateKey(PrivateKey privateKey) { argument
411 delegate.setChannelIdPrivateKey(privateKey);
H A DPreKitKatPlatformOpenSSLSocketImplAdapter.java410 public void setChannelIdPrivateKey(PrivateKey privateKey) { argument
411 delegate.setChannelIdPrivateKey(privateKey);
/external/conscrypt/src/test/java/org/conscrypt/
H A DNativeCryptoTest.java871 private final OpenSSLKey privateKey; field in class:NativeCryptoTest.ServerHooks
883 public ServerHooks(OpenSSLKey privateKey, long[] certificates) { argument
884 this.privateKey = privateKey;
891 if (privateKey != null) {
892 NativeCrypto.SSL_use_PrivateKey(s, privateKey.getNativeRef());
/external/conscrypt/src/main/native/
H A Dorg_conscrypt_NativeCrypto.cpp1477 static jbyteArray rawSignDigestWithPrivateKey(JNIEnv* env, jobject privateKey, argument
1481 JNI_TRACE("rawSignDigestWithPrivateKey(%p) => threw exception", privateKey);
1488 JNI_TRACE("rawSignDigestWithPrivateKey(%p) => using byte array failed", privateKey);
1503 cryptoUpcallsClass, rawSignMethod, privateKey, messageArray.get()));
1506 // rsaDecryptWithPrivateKey uses privateKey to decrypt |ciphertext_len| bytes
1510 static jbyteArray rsaDecryptWithPrivateKey(JNIEnv* env, jobject privateKey, jint padding, argument
1514 JNI_TRACE("rsaDecryptWithPrivateKey(%p) => threw exception", privateKey);
1521 JNI_TRACE("rsaDecryptWithPrivateKey(%p) => using byte array failed", privateKey);
1538 privateKey,
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.equinox.security_1.0.200.v20100503.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 2007 milliseconds

12