Home
last modified time | relevance | path

Searched refs:ECPrivateKey (Results 1 – 25 of 62) sorted by relevance

123

/external/libchrome/crypto/
Dec_private_key.h27 class CRYPTO_EXPORT ECPrivateKey {
29 ~ECPrivateKey();
34 static std::unique_ptr<ECPrivateKey> Create();
39 static std::unique_ptr<ECPrivateKey> CreateFromPrivateKeyInfo(
49 static std::unique_ptr<ECPrivateKey> CreateFromEncryptedPrivateKeyInfo(
53 std::unique_ptr<ECPrivateKey> Copy() const;
76 ECPrivateKey();
80 DISALLOW_COPY_AND_ASSIGN(ECPrivateKey);
Dec_signature_creator_impl.h20 explicit ECSignatureCreatorImpl(ECPrivateKey* key);
31 ECPrivateKey* key_;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DECPrivateKey.java23 public class ECPrivateKey class
28 private ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
34 public static ECPrivateKey getInstance( in getInstance()
37 if (obj instanceof ECPrivateKey) in getInstance()
39 return (ECPrivateKey)obj; in getInstance()
44 return new ECPrivateKey(ASN1Sequence.getInstance(obj)); in getInstance()
53 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
65 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
82 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
92 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/sec/
DECPrivateKey.java25 public class ECPrivateKey class
30 private ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
36 public static ECPrivateKey getInstance( in getInstance()
39 if (obj instanceof ECPrivateKey) in getInstance()
41 return (ECPrivateKey)obj; in getInstance()
46 return new ECPrivateKey(ASN1Sequence.getInstance(obj)); in getInstance()
55 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
67 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
84 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
94 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/sec/
DECPrivateKey.java25 public class ECPrivateKey class
30 private ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
36 public static ECPrivateKey getInstance( in getInstance()
39 if (obj instanceof ECPrivateKey) in getInstance()
41 return (ECPrivateKey)obj; in getInstance()
46 return new ECPrivateKey(ASN1Sequence.getInstance(obj)); in getInstance()
55 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
67 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
84 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
94 public ECPrivateKey( in ECPrivateKey() method in ECPrivateKey
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DTestECPrivateKey.java20 import java.security.interfaces.ECPrivateKey;
24 class TestECPrivateKey implements ECPrivateKey {
25 private ECPrivateKey key;
28 TestECPrivateKey(ECPrivateKey key) { in TestECPrivateKey()
32 TestECPrivateKey(ECPrivateKey key, String format) { in TestECPrivateKey()
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DTestECPrivateKey.java19 import java.security.interfaces.ECPrivateKey;
23 class TestECPrivateKey implements ECPrivateKey {
24 private ECPrivateKey key;
27 TestECPrivateKey(ECPrivateKey key) { in TestECPrivateKey()
31 TestECPrivateKey(ECPrivateKey key, String format) { in TestECPrivateKey()
/external/rust/crates/ring/tests/
Decdsa_from_pkcs8_tests.txt7 # A P-256 key where the ECPrivateKey contains a parameters field that matches the PKCS#8 algorithm …
11 # A P-384 key where the ECPrivateKey contains a parameters field identifying P-384.
15 # A P-256 key where the ECPrivateKey contains a parameters field identifying P-384.
20 # A P-256 key where the ECPrivateKey contains a parameters field containing an entire AlgorithmIden…
30 # A valid PKCS#8 P-256 private key, but without the public key in the ECPrivateKey.
40 # A P-256 ECPrivateKey, but the AlgorithmIdentifier is rsaEncryption.
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECKeyFactory.java25 import java.security.interfaces.ECPrivateKey;
104 } else if (key instanceof ECPrivateKey in engineGetKeySpec()
106 ECPrivateKey ecKey = (ECPrivateKey) key; in engineGetKeySpec()
115 ECPrivateKey ecKey = in engineGetKeySpec()
116 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
166 } else if (key instanceof ECPrivateKey) { in engineTranslateKey()
167 ECPrivateKey ecKey = (ECPrivateKey) key; in engineTranslateKey()
DOpenSSLECPrivateKey.java29 import java.security.interfaces.ECPrivateKey;
39 final class OpenSSLECPrivateKey implements ECPrivateKey, OpenSSLKeyHolder {
70 static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in wrapPlatformKey()
127 private static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey, in wrapPlatformKey()
133 static OpenSSLKey getInstance(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in getInstance()
208 if (!(o instanceof ECPrivateKey)) { in equals()
212 final ECPrivateKey other = (ECPrivateKey) o; in equals()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECKeyFactory.java26 import java.security.interfaces.ECPrivateKey;
106 } else if (key instanceof ECPrivateKey in engineGetKeySpec()
108 ECPrivateKey ecKey = (ECPrivateKey) key; in engineGetKeySpec()
117 ECPrivateKey ecKey = in engineGetKeySpec()
118 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec()
168 } else if (key instanceof ECPrivateKey) { in engineTranslateKey()
169 ECPrivateKey ecKey = (ECPrivateKey) key; in engineTranslateKey()
DOpenSSLECPrivateKey.java31 import java.security.interfaces.ECPrivateKey;
40 final class OpenSSLECPrivateKey implements ECPrivateKey, OpenSSLKeyHolder {
71 static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in wrapPlatformKey()
128 private static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey, in wrapPlatformKey()
134 static OpenSSLKey getInstance(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in getInstance()
209 if (!(o instanceof ECPrivateKey)) { in equals()
213 final ECPrivateKey other = (ECPrivateKey) o; in equals()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEcKeyTest.java31 import java.security.interfaces.ECPrivateKey;
157 ECPrivateKey priv = (ECPrivateKey) keyPair.getPrivate(); in testEncodedPrivateKey()
162 ECPrivateKey decoded = (ECPrivateKey) kf.generatePrivate(spec); in testEncodedPrivateKey()
187 ECPrivateKey priv = (ECPrivateKey) keyPair.getPrivate(); in testKeyGeneration()
DEcdhTest.java28 import java.security.interfaces.ECPrivateKey;
114 public ECPrivateKey getPrivateKey() throws NoSuchAlgorithmException, InvalidKeySpecException { in getPrivateKey()
117 return (ECPrivateKey) kf.generatePrivate(spec); in getPrivateKey()
903 ECPrivateKey priv = (ECPrivateKey) keyGen.generateKeyPair().getPrivate(); in testModifiedPublic()
948 ECPrivateKey priv = (ECPrivateKey) keyGen.generateKeyPair().getPrivate(); in testModifiedPublicSpec()
994 public void testDistinctCurves(String algorithm, ECPrivateKey priv, ECPublicKey pub) in testDistinctCurves()
1066 ECPrivateKey priv; in testWrongOrder()
1070 priv = (ECPrivateKey) keyGen.generateKeyPair().getPrivate(); in testWrongOrder()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyFactorySpi.java8 import java.security.interfaces.ECPrivateKey;
60 else if (key instanceof ECPrivateKey) in engineTranslateKey()
62 return new BCECPrivateKey((ECPrivateKey)key, configuration); in engineTranslateKey()
87 …| spec.isAssignableFrom(java.security.spec.ECPrivateKeySpec.class)) && key instanceof ECPrivateKey) in engineGetKeySpec()
89 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
116 ….isAssignableFrom(org.bouncycastle.jce.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec()
118 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
DBCECPrivateKey.java7 import java.security.interfaces.ECPrivateKey;
36 …implements ECPrivateKey, org.bouncycastle.jce.interfaces.ECPrivateKey, PKCS12BagAttributeCarrier, …
55 ECPrivateKey key, in BCECPrivateKey()
222 …org.bouncycastle.asn1.sec.ECPrivateKey ec = org.bouncycastle.asn1.sec.ECPrivateKey.getInstance(pri… in populateFromPrivKeyInfo()
265 org.bouncycastle.asn1.sec.ECPrivateKey keyStructure; in getEncoded()
269 …keyStructure = new org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(), publicKey, … in getEncoded()
273 … keyStructure = new org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(), params); in getEncoded()
/external/conscrypt/testing/src/main/java/org/conscrypt/testing/
DOpaqueProvider.java21 import java.security.interfaces.ECPrivateKey;
55 } else if (key instanceof ECPrivateKey) { in wrapKey()
56 return new OpaqueDelegatingECPrivateKey((ECPrivateKey) key); in wrapKey()
70 } else if (key instanceof ECPrivateKey) { in wrapKeyMarked()
71 return new OpaqueDelegatingMarkedECPrivateKey((ECPrivateKey) key); in wrapKeyMarked()
252 private final ECPrivateKey delegate;
254 private OpaqueDelegatingECPrivateKey(ECPrivateKey delegate) { in OpaqueDelegatingECPrivateKey()
285 implements ECPrivateKey {
286 private OpaqueDelegatingMarkedECPrivateKey(ECPrivateKey delegate) { in OpaqueDelegatingMarkedECPrivateKey()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/testing/
DOpaqueProvider.java22 import java.security.interfaces.ECPrivateKey;
57 } else if (key instanceof ECPrivateKey) { in wrapKey()
58 return new OpaqueDelegatingECPrivateKey((ECPrivateKey) key); in wrapKey()
72 } else if (key instanceof ECPrivateKey) { in wrapKeyMarked()
73 return new OpaqueDelegatingMarkedECPrivateKey((ECPrivateKey) key); in wrapKeyMarked()
263 private final ECPrivateKey delegate;
265 private OpaqueDelegatingECPrivateKey(ECPrivateKey delegate) { in OpaqueDelegatingECPrivateKey()
296 implements ECPrivateKey {
297 private OpaqueDelegatingMarkedECPrivateKey(ECPrivateKey delegate) { in OpaqueDelegatingMarkedECPrivateKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyFactorySpi.java9 import java.security.interfaces.ECPrivateKey;
64 else if (key instanceof ECPrivateKey) in engineTranslateKey()
66 return new BCECPrivateKey((ECPrivateKey)key, configuration); in engineTranslateKey()
91 …| spec.isAssignableFrom(java.security.spec.ECPrivateKeySpec.class)) && key instanceof ECPrivateKey) in engineGetKeySpec()
93 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
120 …eFrom(com.android.org.bouncycastle.jce.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec()
122 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
DBCECPrivateKey.java8 import java.security.interfaces.ECPrivateKey;
40 …implements ECPrivateKey, com.android.org.bouncycastle.jce.interfaces.ECPrivateKey, PKCS12BagAttrib…
59 ECPrivateKey key, in BCECPrivateKey()
226 …com.android.org.bouncycastle.asn1.sec.ECPrivateKey ec = com.android.org.bouncycastle.asn1.sec.ECPr… in populateFromPrivKeyInfo()
269 com.android.org.bouncycastle.asn1.sec.ECPrivateKey keyStructure; in getEncoded()
273 …keyStructure = new com.android.org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(),… in getEncoded()
277 …keyStructure = new com.android.org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(),… in getEncoded()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyFactorySpi.java9 import java.security.interfaces.ECPrivateKey;
64 else if (key instanceof ECPrivateKey) in engineTranslateKey()
66 return new BCECPrivateKey((ECPrivateKey)key, configuration); in engineTranslateKey()
91 …| spec.isAssignableFrom(java.security.spec.ECPrivateKeySpec.class)) && key instanceof ECPrivateKey) in engineGetKeySpec()
93 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
120 ….android.internal.org.bouncycastle.jce.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec()
122 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
DBCECPrivateKey.java8 import java.security.interfaces.ECPrivateKey;
40 …implements ECPrivateKey, com.android.internal.org.bouncycastle.jce.interfaces.ECPrivateKey, PKCS12…
59 ECPrivateKey key, in BCECPrivateKey()
226 …id.internal.org.bouncycastle.asn1.sec.ECPrivateKey ec = com.android.internal.org.bouncycastle.asn1… in populateFromPrivKeyInfo()
269 com.android.internal.org.bouncycastle.asn1.sec.ECPrivateKey keyStructure; in getEncoded()
273 …keyStructure = new com.android.internal.org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, thi… in getEncoded()
277 …keyStructure = new com.android.internal.org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, thi… in getEncoded()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java43 import java.security.interfaces.ECPrivateKey;
104 private static final ECPrivateKey KAT_PRIVATE_KEY1;
106 private static final ECPrivateKey KAT_PRIVATE_KEY2;
131 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer()
134 ECPrivateKey privateKey2 = in testKnownAnswer()
155 ECPublicKey publicKey1, ECPrivateKey privateKey1, in testKnownAnswer()
156 ECPublicKey publicKey2, ECPrivateKey privateKey2, in testKnownAnswer()
509 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey()
512 return (ECPrivateKey) keyFactory.generatePrivate(new PKCS8EncodedKeySpec(pkcs8EncodedKey)); in getPrivateKey()
521 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java40 import java.security.interfaces.ECPrivateKey;
102 private static final ECPrivateKey KAT_PRIVATE_KEY1;
104 private static final ECPrivateKey KAT_PRIVATE_KEY2;
129 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer()
132 ECPrivateKey privateKey2 = in testKnownAnswer()
153 ECPublicKey publicKey1, ECPrivateKey privateKey1, in testKnownAnswer()
154 ECPublicKey publicKey2, ECPrivateKey privateKey2, in testKnownAnswer()
507 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey()
510 return (ECPrivateKey) keyFactory.generatePrivate(new PKCS8EncodedKeySpec(pkcs8EncodedKey)); in getPrivateKey()
519 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DECUtil.java27 import org.bouncycastle.jce.interfaces.ECPrivateKey;
229 if (key instanceof ECPrivateKey) in generatePrivateKeyParameter()
231 ECPrivateKey k = (ECPrivateKey)key; in generatePrivateKeyParameter()
254 else if (key instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter()
256 … java.security.interfaces.ECPrivateKey privKey = (java.security.interfaces.ECPrivateKey)key; in generatePrivateKeyParameter()
276 if (privateKey instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter()

123