/external/cronet/crypto/ |
D | ec_private_key.cc | 23 ECPrivateKey::~ECPrivateKey() = default; 26 std::unique_ptr<ECPrivateKey> ECPrivateKey::Create() { in Create() 34 std::unique_ptr<ECPrivateKey> result(new ECPrivateKey()); in Create() 44 std::unique_ptr<ECPrivateKey> ECPrivateKey::CreateFromPrivateKeyInfo( in CreateFromPrivateKeyInfo() 54 std::unique_ptr<ECPrivateKey> result(new ECPrivateKey()); in CreateFromPrivateKeyInfo() 60 std::unique_ptr<ECPrivateKey> ECPrivateKey::CreateFromEncryptedPrivateKeyInfo( in CreateFromEncryptedPrivateKeyInfo() 84 std::unique_ptr<ECPrivateKey> result(new ECPrivateKey()); in CreateFromEncryptedPrivateKeyInfo() 89 std::unique_ptr<ECPrivateKey> ECPrivateKey::Copy() const { in Copy() 90 std::unique_ptr<ECPrivateKey> copy(new ECPrivateKey()); in Copy() 95 bool ECPrivateKey::ExportPrivateKey(std::vector<uint8_t>* output) const { in ExportPrivateKey() [all …]
|
D | ec_private_key.h | 27 class CRYPTO_EXPORT ECPrivateKey { 29 ECPrivateKey(const ECPrivateKey&) = delete; 30 ECPrivateKey& operator=(const ECPrivateKey&) = delete; 32 ~ECPrivateKey(); 36 static std::unique_ptr<ECPrivateKey> Create(); 41 static std::unique_ptr<ECPrivateKey> CreateFromPrivateKeyInfo( 51 static std::unique_ptr<ECPrivateKey> CreateFromEncryptedPrivateKeyInfo( 55 std::unique_ptr<ECPrivateKey> Copy() const; 71 ECPrivateKey();
|
D | ec_private_key_unittest.cc | 16 void ExpectKeysEqual(const crypto::ECPrivateKey* keypair1, in ExpectKeysEqual() 17 const crypto::ECPrivateKey* keypair2) { in ExpectKeysEqual() 43 std::unique_ptr<crypto::ECPrivateKey> keypair(crypto::ECPrivateKey::Create()); in TEST() 49 std::unique_ptr<crypto::ECPrivateKey> keypair_copy = in TEST() 50 crypto::ECPrivateKey::CreateFromPrivateKeyInfo(privkey); in TEST() 56 std::unique_ptr<crypto::ECPrivateKey> keypair1( in TEST() 57 crypto::ECPrivateKey::Create()); in TEST() 58 std::unique_ptr<crypto::ECPrivateKey> keypair2(keypair1->Copy()); in TEST() 99 std::unique_ptr<crypto::ECPrivateKey> key = in TEST() 100 crypto::ECPrivateKey::CreateFromPrivateKeyInfo(std::vector<uint8_t>( in TEST() [all …]
|
D | ec_signature_creator_unittest.cc | 22 std::unique_ptr<crypto::ECPrivateKey> key_original( in TEST() 23 crypto::ECPrivateKey::Create()); in TEST() 29 std::unique_ptr<crypto::ECPrivateKey> key( in TEST() 30 crypto::ECPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/ |
D | ECPrivateKey.java | 23 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/libchrome/crypto/ |
D | ec_private_key.h | 27 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);
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/sec/ |
D | ECPrivateKey.java | 25 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/ |
D | ECPrivateKey.java | 25 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/common/src/test/java/org/conscrypt/java/security/ |
D | TestECPrivateKey.java | 19 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/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/ |
D | TestECPrivateKey.java | 20 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/rust/crates/ring/tests/ |
D | ecdsa_from_pkcs8_tests.txt | 7 # 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/ |
D | OpenSSLECKeyFactory.java | 25 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()
|
D | OpenSSLECPrivateKey.java | 29 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/ |
D | OpenSSLECKeyFactory.java | 26 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()
|
D | OpenSSLECPrivateKey.java | 31 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/ |
D | EcKeyTest.java | 31 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()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyFactorySpi.java | 8 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()
|
D | BCECPrivateKey.java | 7 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyFactorySpi.java | 9 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()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/testing/ |
D | OpaqueProvider.java | 22 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/conscrypt/testing/src/main/java/org/conscrypt/testing/ |
D | OpaqueProvider.java | 21 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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyFactorySpi.java | 9 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()
|
D | BCECPrivateKey.java | 8 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/common/src/test/java/org/conscrypt/javax/crypto/ |
D | ECDHKeyAgreementTest.java | 40 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/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/ |
D | ECDHKeyAgreementTest.java | 43 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 …]
|