Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 19 of 19) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java184 DHPrivateKey privKey = (DHPrivateKey)key; in engineInit() local
197 this.p = privKey.getParams().getP(); in engineInit()
198 this.g = privKey.getParams().getG(); in engineInit()
208 this.p = privKey.getParams().getP(); in engineInit()
209 this.g = privKey.getParams().getG(); in engineInit()
212 this.x = this.result = privKey.getX(); in engineInit()
225 DHPrivateKey privKey = (DHPrivateKey)key; in engineInit() local
227 this.p = privKey.getParams().getP(); in engineInit()
228 this.g = privKey.getParams().getG(); in engineInit()
229 this.x = this.result = privKey.getX(); in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DPrivateKeyInfo.java25 private ASN1OctetString privKey; field in PrivateKeyInfo
65 … this.privKey = new DEROctetString(privateKey.toASN1Primitive().getEncoded(ASN1Encoding.DER)); in PrivateKeyInfo()
86 privKey = ASN1OctetString.getInstance(e.nextElement()); in PrivateKeyInfo()
109 return ASN1Primitive.fromByteArray(privKey.getOctets()); in parsePrivateKey()
155 v.add(privKey); in toASN1Primitive()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPrivateKey.java60 final BigInteger privKey = ecKeySpec.getS(); in OpenSSLECPrivateKey() local
62 privKey.toByteArray())); in OpenSSLECPrivateKey()
144 final BigInteger privKey = ecPrivateKey.getS(); in getInstance() local
146 privKey.toByteArray())); in getInstance()
DOpenSSLRSAKeyPairGenerator.java54 PrivateKey privKey = OpenSSLRSAPrivateKey.getInstance(key); in generateKeyPair() local
57 return new KeyPair(pubKey, privKey); in generateKeyPair()
DOpenSSLRSAKeyFactory.java135 RSAPrivateKey privKey = in engineGetKeySpec() local
137 if (privKey instanceof RSAPrivateCrtKey) { in engineGetKeySpec()
138 RSAPrivateCrtKey rsaKey = (RSAPrivateCrtKey) privKey; in engineGetKeySpec()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyAgreementSpi.java238 …ECPrivateKeyParameters privKey = (ECPrivateKeyParameters)ECUtil.generatePrivateKeyParameter((Priva… in initFromKey() local
239 this.parameters = privKey.getParameters(); in initFromKey()
241 agreement.init(privKey); in initFromKey()
DBCECPrivateKey.java221 ASN1Encodable privKey = info.parsePrivateKey(); in populateFromPrivKeyInfo() local
222 if (privKey instanceof ASN1Integer) in populateFromPrivKeyInfo()
224 ASN1Integer derD = ASN1Integer.getInstance(privKey); in populateFromPrivKeyInfo()
230 …ouncycastle.asn1.sec.ECPrivateKey ec = org.bouncycastle.asn1.sec.ECPrivateKey.getInstance(privKey); in populateFromPrivKeyInfo()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DKeyUtil.java47 public static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey) in getEncodedPrivateKeyInfo() argument
51 PrivateKeyInfo info = new PrivateKeyInfo(algId, privKey.toASN1Primitive()); in getEncodedPrivateKeyInfo()
DBaseCipherSpi.java188 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); in engineUnwrap() local
190 if (privKey != null) in engineUnwrap()
192 return privKey; in engineUnwrap()
DECUtil.java246 … java.security.interfaces.ECPrivateKey privKey = (java.security.interfaces.ECPrivateKey)key; in generatePrivateKeyParameter() local
247 ECParameterSpec s = EC5Util.convertSpec(privKey.getParams(), false); in generatePrivateKeyParameter()
249 privKey.getS(), in generatePrivateKeyParameter()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java875 …PrivateKey privKey = unwrapKey(eIn.getEncryptionAlgorithm(), eIn.getEncryptedData(), password, wro… in engineLoad() local
880 PKCS12BagAttributeCarrier bagAttr = (PKCS12BagAttributeCarrier)privKey; in engineLoad()
917 keys.put(alias, privKey); in engineLoad()
932 keys.put(name, privKey); in engineLoad()
942 keys.put("unmarked", privKey); in engineLoad()
974 …PrivateKey privKey = unwrapKey(eIn.getEncryptionAlgorithm(), eIn.getEncryptedData(), password, wro… in engineLoad() local
979 PKCS12BagAttributeCarrier bagAttr = (PKCS12BagAttributeCarrier)privKey; in engineLoad()
1014 keys.put(alias, privKey); in engineLoad()
1026 keys.put(name, privKey); in engineLoad()
1036 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(kInfo); in engineLoad() local
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseWrapCipher.java368 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); in engineUnwrap() local
370 if (privKey != null) in engineUnwrap()
372 return privKey; in engineUnwrap()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPrivateKey.java256 ASN1Encodable privKey = info.parsePrivateKey(); in populateFromPrivKeyInfo() local
257 if (privKey instanceof ASN1Integer) in populateFromPrivKeyInfo()
259 ASN1Integer derD = ASN1Integer.getInstance(privKey); in populateFromPrivKeyInfo()
265 ECPrivateKeyStructure ec = new ECPrivateKeyStructure((ASN1Sequence)privKey); in populateFromPrivKeyInfo()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DNativeCryptoTest.java218 private static NativeRef.EVP_PKEY getRsaPkey(RSAPrivateCrtKey privKey) throws Exception { in getRsaPkey() argument
220 privKey.getModulus().toByteArray(), privKey.getPublicExponent().toByteArray(), in getRsaPkey()
221 privKey.getPrivateExponent().toByteArray(), privKey.getPrimeP().toByteArray(), in getRsaPkey()
222 privKey.getPrimeQ().toByteArray(), privKey.getPrimeExponentP().toByteArray(), in getRsaPkey()
223 privKey.getPrimeExponentQ().toByteArray(), in getRsaPkey()
224 privKey.getCrtCoefficient().toByteArray())); in getRsaPkey()
2642 RSAPrivateCrtKey privKey = (RSAPrivateCrtKey) kp.getPrivate(); in test_EVP_DigestSignInit() local
2646 privKey.getModulus().toByteArray(), privKey.getPublicExponent().toByteArray(), in test_EVP_DigestSignInit()
2647 privKey.getPrivateExponent().toByteArray(), privKey.getPrimeP().toByteArray(), in test_EVP_DigestSignInit()
2648 privKey.getPrimeQ().toByteArray(), privKey.getPrimeExponentP().toByteArray(), in test_EVP_DigestSignInit()
[all …]
/external/boringssl/src/ssl/test/runner/
Dsign.go255 privKey, ok := key.(ed25519.PrivateKey)
260 return ed25519.Sign(privKey, msg), nil
Dhandshake_client.go951 privKey := chainToSend.PrivateKey
954 …certVerify.signatureAlgorithm, err = selectSignatureAlgorithm(c.vers, privKey, c.config, certReq.s…
961 …certVerify.signature, err = signMessage(c.vers, privKey, c.config, certVerify.signatureAlgorithm, …
1162 privKey := c.config.Certificates[0].PrivateKey
1165 …certVerify.signatureAlgorithm, err = selectSignatureAlgorithm(c.vers, privKey, c.config, certReq.s…
1173 …certVerify.signature, err = signMessage(c.vers, privKey, c.config, certVerify.signatureAlgorithm, …
1180 rsaKey, ok := privKey.(*rsa.PrivateKey)
Dhandshake_server.go846 privKey := hs.cert.PrivateKey
849 …certVerify.signatureAlgorithm, err = selectSignatureAlgorithm(c.vers, privKey, config, hs.clientHe…
856 …certVerify.signature, err = signMessage(c.vers, privKey, c.config, certVerify.signatureAlgorithm, …
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiManagerFacade.java391 PrivateKey privKey = strToPrivateKey(keyStr); in genWifiEnterpriseConfig() local
393 Log.v("Private Key is " + privKey); in genWifiEnterpriseConfig()
394 eConfig.setClientKeyEntry(privKey, cert); in genWifiEnterpriseConfig()
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java948 PrivateKey privKey = delegateKeyManager.getPrivateKey(alias); in run_SSLSocket_clientAuth_OpaqueKey()
949 if (privKey instanceof RSAPrivateKey) { in run_SSLSocket_clientAuth_OpaqueKey()
950 return new OpaqueDelegatingRSAPrivateKey((RSAPrivateKey) privKey); in run_SSLSocket_clientAuth_OpaqueKey()
951 } else if (privKey instanceof ECPrivateKey) { in run_SSLSocket_clientAuth_OpaqueKey()
952 return new OpaqueDelegatingECPrivateKey((ECPrivateKey) privKey); in run_SSLSocket_clientAuth_OpaqueKey()