Home
last modified time | relevance | path

Searched refs:PrivateKey (Results 1 – 25 of 111) sorted by relevance

12345

/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/tests/
Dtest_load_save_keys.py62 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_DER, 'DER')
63 expected = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287)
70 key = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287)
98 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_PEM, 'PEM')
99 expected = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287)
106 key = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287)
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLKey.java22 import java.security.PrivateKey;
82 public static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException { in fromPrivateKey()
133 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly()
157 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { in fromECPrivateKeyForTLSStackOnly()
177 private static OpenSSLKey getOpenSSLKey(PrivateKey key) { in getOpenSSLKey()
195 private static OpenSSLKey fromKeyMaterial(PrivateKey key) { in fromKeyMaterial()
211 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly()
223 private static OpenSSLKey wrapPrivateKey(PrivateKey key) throws InvalidKeyException { in wrapPrivateKey()
309 public PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey()
320 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey()
DOpenSSLECKeyFactory.java23 import java.security.PrivateKey;
54 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate()
98 } else if (key instanceof PrivateKey && ECPrivateKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
106 } else if (key instanceof PrivateKey in engineGetKeySpec()
162 } else if ((key instanceof PrivateKey) && ("PKCS#8".equals(key.getFormat()))) { in engineTranslateKey()
DOpenSSLRSAKeyFactory.java23 import java.security.PrivateKey;
54 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { in engineGeneratePrivate()
112 } else if (key instanceof PrivateKey in engineGetKeySpec()
129 } else if (key instanceof PrivateKey && RSAPrivateKeySpec.class.isAssignableFrom(keySpec)) { in engineGetKeySpec()
137 } else if (key instanceof PrivateKey in engineGetKeySpec()
207 } else if ((key instanceof PrivateKey) && ("PKCS#8".equals(key.getFormat()))) { in engineTranslateKey()
DOpenSSLECDHKeyAgreement.java22 import java.security.PrivateKey;
122 if (!(key instanceof PrivateKey)) { in engineInit()
126 OpenSSLKey openSslKey = OpenSSLKey.fromPrivateKey((PrivateKey) key); in engineInit()
DOpenSSLRSAKeyPairGenerator.java23 import java.security.PrivateKey;
47 PrivateKey privKey = OpenSSLRSAPrivateKey.getInstance(key); in generateKeyPair()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509V1CertificateGenerator.java9 import java.security.PrivateKey;
182 PrivateKey key) in generateX509Certificate()
201 PrivateKey key, in generateX509Certificate()
222 PrivateKey key, in generateX509Certificate()
236 PrivateKey key, in generateX509Certificate()
272 PrivateKey key) in generate()
287 PrivateKey key, in generate()
312 PrivateKey key, in generate()
325 PrivateKey key, in generate()
DX509V3CertificateGenerator.java9 import java.security.PrivateKey;
318 PrivateKey key) in generateX509Certificate()
338 PrivateKey key, in generateX509Certificate()
358 PrivateKey key, in generateX509Certificate()
372 PrivateKey key, in generateX509Certificate()
408 PrivateKey key) in generate()
424 PrivateKey key, in generate()
455 PrivateKey key, in generate()
468 PrivateKey key, in generate()
/external/boringssl/src/ssl/test/runner/
Dtls.go217 cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes)
231 priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
241 priv, ok := cert.PrivateKey.(*ecdsa.PrivateKey)
262 func parsePrivateKey(der []byte) (crypto.PrivateKey, error) {
268 case *rsa.PrivateKey, *ecdsa.PrivateKey:
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKSPrivateKeyEntryTest.java49 private PrivateKey testPrivateKey;
60 testPrivateKey = (diffKeys ? (PrivateKey) new tmpPrivateKey() : in createParams()
61 (PrivateKey) new tmpPrivateKey(testChain[0].getPublicKey().getAlgorithm())); in createParams()
71 PrivateKey pk = null; in testPrivateKeyEntry01()
87 PrivateKey pk = new tmpPrivateKey(); in testPrivateKeyEntry02()
187 private static class tmpPrivateKey implements PrivateKey {
DKeyPairTest.java52 static PrivateKey getPrivate() { in getPrivate()
53 return new PrivateKey() { in getPrivate()
116 PrivateKey pk = TestKeyPair.getPrivate();
DPrivateKeyTest.java24 import java.security.PrivateKey;
53 public class checkPrivateKey implements PrivateKey {
/external/oauth/core/src/main/java/net/oauth/signature/
DRSA_SHA1.java23 import java.security.PrivateKey;
89 private PrivateKey privateKey = null;
100 if (privateKeyObject instanceof PrivateKey) { in initialize()
101 privateKey = (PrivateKey)privateKeyObject; in initialize()
178 private PrivateKey getPrivateKeyFromDer(byte[] privateKeyObject) in getPrivateKeyFromDer()
185 private PrivateKey getPrivateKeyFromPem(String privateKeyObject) in getPrivateKeyFromPem()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
DECPrivateKey.java4 import java.security.PrivateKey;
10 extends ECKey, PrivateKey
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DKeyFactory.java6 import java.security.PrivateKey;
21 protected PrivateKey engineGeneratePrivate( in engineGeneratePrivate()
30 PrivateKey key = BouncyCastleProvider.getPrivateKey(info); in engineGeneratePrivate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
DAsymmetricKeyInfoConverter.java4 import java.security.PrivateKey;
12 PrivateKey generatePrivate(PrivateKeyInfo keyInfo) in generatePrivate()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator3.java26 import java.security.PrivateKey;
44 PrivateKey priK = (new MyKeyPairGenerator1()).new PrivKey(); in generateKeyPair()
DPrivateKeyStub.java24 import java.security.PrivateKey;
30 public class PrivateKeyStub implements PrivateKey {
DMySignature2.java25 import java.security.PrivateKey;
49 protected void engineInitSign(PrivateKey privateKey) in engineInitSign()
DMySignature1.java25 import java.security.PrivateKey;
64 protected void engineInitSign(PrivateKey privateKey) in engineInitSign()
DTestKeyPair.java26 import java.security.PrivateKey;
595 public PrivateKey getPrivate() throws in getPrivate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DKeyFactorySpi.java6 import java.security.PrivateKey;
64 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo) in generatePrivate()
94 protected PrivateKey engineGeneratePrivate( in engineGeneratePrivate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyFactorySpi.java6 import java.security.PrivateKey;
67 protected PrivateKey engineGeneratePrivate( in engineGeneratePrivate()
91 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo) in generatePrivate()
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1-modules/pyasn1_modules/
Drfc5208.py25 class PrivateKey(univ.OctetString): pass class
37 namedtype.NamedType('privateKey', PrivateKey()),
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DDHUtil.java4 import java.security.PrivateKey;
37 PrivateKey key) in generatePrivateKeyParameter()

12345