/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | AsymmetricKeyParameter.java | 8 boolean privateKey; field in AsymmetricKeyParameter 11 boolean privateKey) in AsymmetricKeyParameter() argument 13 this.privateKey = privateKey; in AsymmetricKeyParameter() 18 return privateKey; in isPrivate()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLECPrivateKey.java | 81 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 84 if (privateKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 85 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 90 throw new InvalidKeyException("EC parameters not available. Private: " + privateKey in wrapJCAPrivateKeyForTLSStackOnly() 93 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, params); in wrapJCAPrivateKeyForTLSStackOnly() 101 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 104 if (privateKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 105 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 109 throw new InvalidKeyException("EC parameters not available: " + privateKey); in wrapJCAPrivateKeyForTLSStackOnly() 120 NativeCrypto.getECPrivateKeyWrapper(privateKey, group.getNativeRef()), true); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLSignatureRawRSA.java | 85 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument 86 if (privateKey instanceof OpenSSLRSAPrivateKey) { in engineInitSign() 87 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey; in engineInitSign() 89 } else if (privateKey instanceof RSAPrivateCrtKey) { in engineInitSign() 90 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey; in engineInitSign() 92 } else if (privateKey instanceof RSAPrivateKey) { in engineInitSign() 93 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey; in engineInitSign()
|
D | OpenSSLKey.java | 133 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly() argument 134 OpenSSLKey result = getOpenSSLKey(privateKey); in fromPrivateKeyForTLSStackOnly() 139 result = fromKeyMaterial(privateKey); in fromPrivateKeyForTLSStackOnly() 144 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in fromPrivateKeyForTLSStackOnly() 211 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 213 String keyAlgorithm = privateKey.getAlgorithm(); in wrapJCAPrivateKeyForTLSStackOnly() 215 return OpenSSLRSAPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly() 217 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLRSAPrivateKey.java | 110 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 113 if (privateKey instanceof RSAKey) { in wrapJCAPrivateKeyForTLSStackOnly() 114 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 119 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKey in wrapJCAPrivateKeyForTLSStackOnly() 123 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLSocketImpl.java | 1008 public void setChannelIdPrivateKey(PrivateKey privateKey) { in setChannelIdPrivateKey() argument 1021 if (privateKey == null) { in setChannelIdPrivateKey() 1028 if (privateKey instanceof ECKey) { in setChannelIdPrivateKey() 1029 ecParams = ((ECKey) privateKey).getParams(); in setChannelIdPrivateKey() 1037 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); in setChannelIdPrivateKey()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore2Test.java | 52 static PrivateKey privateKey; field in KeyStore2Test 62 privateKey = keyPair.getPrivate(); 147 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert); in creatCertificate() 276 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert); in test_getCertificateAliasLjava_security_cert_Certificate() 307 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert); in test_getCertificateChainLjava_lang_String() 367 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert); in test_getKeyLjava_lang_String$C() 370 byte[] priB = privateKey.getEncoded(); in test_getKeyLjava_lang_String$C() 373 .equals(privateKey.getAlgorithm()); in test_getKeyLjava_lang_String$C() 374 equality &= returnedKey.getFormat().equals(privateKey.getFormat()); in test_getKeyLjava_lang_String$C() 432 keyTest.setKeyEntry("alias2", privateKey, pssWord, cert); in test_isCertificateEntryLjava_lang_String() [all …]
|
D | SignerTest.java | 101 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData); in testGetPrivateKey() local 103 KeyPair kp = new KeyPair(publicKey, privateKey); in testGetPrivateKey() 110 assertSame(privateKey, s.getPrivateKey()); in testGetPrivateKey()
|
D | KeyStorePrivateKeyEntryTest.java | 69 PrivateKey privateKey = keyPair.getPrivate(); in testGetCertificateChain() local 74 privateKey, new Certificate[] { certificate }); in testGetCertificateChain()
|
D | KeyFactory2Test.java | 111 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_generatePrivateLjava_security_spec_KeySpec() local 113 .getEncoded(), privateKey.getEncoded()); in test_generatePrivateLjava_security_spec_KeySpec() 262 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_getKeySpecLjava_security_KeyLjava_lang_Class() local 267 .getEncoded(), privateKey.getEncoded()); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
D | RSA_SHA1.java | 89 private PrivateKey privateKey = null; field in RSA_SHA1 101 privateKey = (PrivateKey)privateKeyObject; in initialize() 103 privateKey = getPrivateKeyFromPem((String)privateKeyObject); in initialize() 105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject); in initialize() 216 if (privateKey == null) { in sign() 222 signer.initSign(privateKey); in sign()
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | OpenSSLKeyTest.java | 61 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey(); in test_fromPrivateKeyPemInputStream() local 62 assertEquals(RSA_MODULUS, privateKey.getModulus()); in test_fromPrivateKeyPemInputStream() 63 assertEquals(RSA_PRIVATE_EXPONENT, privateKey.getPrivateExponent()); in test_fromPrivateKeyPemInputStream()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | PrivateKeyInfo.java | 53 ASN1Encodable privateKey) in PrivateKeyInfo() argument 56 this(algId, privateKey, null); in PrivateKeyInfo() 61 ASN1Encodable privateKey, in PrivateKeyInfo() argument 65 … this.privKey = new DEROctetString(privateKey.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in PrivateKeyInfo()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | JcaContentSignerBuilder.java | 56 public ContentSigner build(PrivateKey privateKey) in build() argument 65 sig.initSign(privateKey, random); in build() 69 sig.initSign(privateKey); in build()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | DSASigner.java | 99 PrivateKey privateKey, in engineInitSign() argument 104 engineInitSign(privateKey); in engineInitSign() 108 PrivateKey privateKey) in engineInitSign() argument 113 param = DSAUtil.generatePrivateKeyParameter(privateKey); in engineInitSign()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | DigestSignatureSpi.java | 94 PrivateKey privateKey) in engineInitSign() argument 97 if (!(privateKey instanceof RSAPrivateKey)) in engineInitSign() 99 …throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey i… in engineInitSign() 102 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey); in engineInitSign()
|
/external/boringssl/src/crypto/ec/ |
D | ec_asn1.c | 135 ASN1_OCTET_STRING *privateKey; member 155 ASN1_SIMPLE(EC_PRIVATEKEY, privateKey, ASN1_OCTET_STRING), 319 if (priv_key->privateKey) { in d2i_ECPrivateKey() 321 BN_bin2bn(M_ASN1_STRING_data(priv_key->privateKey), in d2i_ECPrivateKey() 322 M_ASN1_STRING_length(priv_key->privateKey), ret->priv_key); in d2i_ECPrivateKey() 422 if (!M_ASN1_OCTET_STRING_set(priv_key->privateKey, buffer, buf_len)) { in i2d_ECPrivateKey()
|
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
D | DigitalSignatureTest.java | 79 PrivateKey privateKey = keyFactory in test_Sign() local 122 dsig.init(privateKey); in test_Sign()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
D | KeyPairTest.java | 46 PrivateKeyStub privateKey = new PrivateKeyStub("privateAlgorithm", in setUp() local 51 keyPair = new KeyPair(publicKey, privateKey); in setUp()
|
/external/tpm2/ |
D | CryptoEngine.h | 169 TPM2B_ECC_PARAMETER *privateKey; // Pointer to the private key member 182 TPM2B *privateKey; // The private exponent (not a prime) member
|
D | CpriRSA.c | 47 pAssert(key != NULL && key->privateKey != NULL && key->publicKey != NULL); in RsaPrivateExponent() 64 || BN_bin2bn(key->privateKey->buffer, key->privateKey->size, bnP) == NULL) in RsaPrivateExponent() 105 BN_bn2bin(bnD, &key->privateKey->buffer[fill]); in RsaPrivateExponent() 106 memset(key->privateKey->buffer, 0, fill); in RsaPrivateExponent() 109 key->privateKey->size = key->publicKey->size; in RsaPrivateExponent() 312 key->privateKey->size, key->privateKey->buffer, in RSADP()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | SignatureSpi.java | 58 PrivateKey privateKey) in engineInitSign() argument 61 CipherParameters param = ECUtil.generatePrivateKeyParameter(privateKey); in engineInitSign()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 209 … PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes)); in generatePrivateKeyParameter() local 211 if (privateKey instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter() 213 return ECUtil.generatePrivateKeyParameter(privateKey); in generatePrivateKeyParameter()
|
/external/boringssl/src/ssl/test/runner/ |
D | key_agreement.go | 267 privateKey []byte member 272 e.privateKey, x, y, err = elliptic.GenerateKey(e.curve, rand) 284 x, _ = e.curve.ScalarMult(x, y, e.privateKey) 294 privateKey [32]byte member 298 _, err = io.ReadFull(rand, e.privateKey[:]) 303 curve25519.ScalarBaseMult(&out, &e.privateKey) 313 curve25519.ScalarMult(&out, &e.privateKey, &peerKeyCopy)
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | MySignature2.java | 49 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
|