/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);
|
D | ec_signature_creator_impl.h | 20 explicit ECSignatureCreatorImpl(ECPrivateKey* key); 31 ECPrivateKey* key_;
|
/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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECKeyFactory.java | 26 import java.security.interfaces.ECPrivateKey; 108 } else if (key instanceof ECPrivateKey in engineGetKeySpec() 110 ECPrivateKey ecKey = (ECPrivateKey) key; in engineGetKeySpec() 119 ECPrivateKey ecKey = in engineGetKeySpec() 120 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 170 } else if (key instanceof ECPrivateKey) { in engineTranslateKey() 171 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() 199 if (!(o instanceof ECPrivateKey)) { in equals() 203 final ECPrivateKey other = (ECPrivateKey) o; in equals()
|
/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 | 28 import java.security.interfaces.ECPrivateKey; 38 final class OpenSSLECPrivateKey implements ECPrivateKey, OpenSSLKeyHolder { 69 static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in wrapPlatformKey() 126 private static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey, in wrapPlatformKey() 132 static OpenSSLKey getInstance(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in getInstance() 198 if (!(o instanceof ECPrivateKey)) { in equals() 202 final ECPrivateKey other = (ECPrivateKey) o; in equals()
|
D | OpenSSLKey.java | 24 import java.security.interfaces.ECPrivateKey; 212 } else if (key instanceof ECPrivateKey) { in wrapPrivateKey() 213 return OpenSSLECPrivateKey.wrapPlatformKey((ECPrivateKey) key); in wrapPrivateKey()
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | EcKeyTest.java | 29 import java.security.interfaces.ECPrivateKey; 149 ECPrivateKey priv = (ECPrivateKey) keyPair.getPrivate(); in testEncodedPrivateKey() 154 ECPrivateKey decoded = (ECPrivateKey) kf.generatePrivate(spec); in testEncodedPrivateKey() 179 ECPrivateKey priv = (ECPrivateKey) keyPair.getPrivate(); in testKeyGeneration()
|
D | EcdhTest.java | 26 import java.security.interfaces.ECPrivateKey; 112 public ECPrivateKey getPrivateKey() throws NoSuchAlgorithmException, InvalidKeySpecException { in getPrivateKey() 115 return (ECPrivateKey) kf.generatePrivate(spec); in getPrivateKey() 892 ECPrivateKey priv = (ECPrivateKey) keyGen.generateKeyPair().getPrivate(); in testModifiedPublic() 937 ECPrivateKey priv = (ECPrivateKey) keyGen.generateKeyPair().getPrivate(); in testModifiedPublicSpec() 983 public void testDistinctCurves(String algorithm, ECPrivateKey priv, ECPublicKey pub) in testDistinctCurves() 1055 ECPrivateKey priv; in testWrongOrder() 1059 priv = (ECPrivateKey) keyGen.generateKeyPair().getPrivate(); in testWrongOrder()
|
D | EcdsaTest.java | 32 import java.security.interfaces.ECPrivateKey; 590 BigInteger extractK(byte[] signature, BigInteger h, ECPrivateKey priv) throws Exception { in extractK() 686 ECPrivateKey priv = (ECPrivateKey) keyPair.getPrivate(); in testBasic() 730 ECPrivateKey priv = (ECPrivateKey) keyPair.getPrivate(); in testBias()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | KeyFactorySpi.java | 8 import java.security.interfaces.ECPrivateKey; 58 else if (key instanceof ECPrivateKey) in engineTranslateKey() 60 return new BCECPrivateKey((ECPrivateKey)key, configuration); in engineTranslateKey() 85 …f (spec.isAssignableFrom(java.security.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec() 87 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec() 114 ….isAssignableFrom(org.bouncycastle.jce.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec() 116 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
|
D | BCECPrivateKey.java | 7 import java.security.interfaces.ECPrivateKey; 37 …implements ECPrivateKey, org.bouncycastle.jce.interfaces.ECPrivateKey, PKCS12BagAttributeCarrier, … 56 ECPrivateKey key, in BCECPrivateKey() 223 …org.bouncycastle.asn1.sec.ECPrivateKey ec = org.bouncycastle.asn1.sec.ECPrivateKey.getInstance(pri… in populateFromPrivKeyInfo() 266 org.bouncycastle.asn1.sec.ECPrivateKey keyStructure; in getEncoded() 270 …keyStructure = new org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(), publicKey, … in getEncoded() 274 … 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; 62 else if (key instanceof ECPrivateKey) in engineTranslateKey() 64 return new BCECPrivateKey((ECPrivateKey)key, configuration); in engineTranslateKey() 89 …f (spec.isAssignableFrom(java.security.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec() 91 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec() 118 …eFrom(com.android.org.bouncycastle.jce.spec.ECPrivateKeySpec.class) && key instanceof ECPrivateKey) in engineGetKeySpec() 120 ECPrivateKey k = (ECPrivateKey)key; in engineGetKeySpec()
|
D | BCECPrivateKey.java | 8 import java.security.interfaces.ECPrivateKey; 41 …implements ECPrivateKey, com.android.org.bouncycastle.jce.interfaces.ECPrivateKey, PKCS12BagAttrib… 60 ECPrivateKey key, in BCECPrivateKey() 227 …com.android.org.bouncycastle.asn1.sec.ECPrivateKey ec = com.android.org.bouncycastle.asn1.sec.ECPr… in populateFromPrivKeyInfo() 270 com.android.org.bouncycastle.asn1.sec.ECPrivateKey keyStructure; in getEncoded() 274 …keyStructure = new com.android.org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(),… in getEncoded() 278 …keyStructure = new com.android.org.bouncycastle.asn1.sec.ECPrivateKey(orderBitLength, this.getS(),… in getEncoded()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/ |
D | ECDHKeyAgreementTest.java | 37 import java.security.interfaces.ECPrivateKey; 107 private static final ECPrivateKey KAT_PRIVATE_KEY1; 109 private static final ECPrivateKey KAT_PRIVATE_KEY2; 134 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer() 137 ECPrivateKey privateKey2 = in testKnownAnswer() 158 ECPublicKey publicKey1, ECPrivateKey privateKey1, in testKnownAnswer() 159 ECPublicKey publicKey2, ECPrivateKey privateKey2, in testKnownAnswer() 463 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey() 466 return (ECPrivateKey) keyFactory.generatePrivate(new PKCS8EncodedKeySpec(pkcs8EncodedKey)); in getPrivateKey() 475 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey() [all …]
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/ |
D | ECDHKeyAgreementTest.java | 38 import java.security.interfaces.ECPrivateKey; 109 private static final ECPrivateKey KAT_PRIVATE_KEY1; 111 private static final ECPrivateKey KAT_PRIVATE_KEY2; 136 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer() 139 ECPrivateKey privateKey2 = in testKnownAnswer() 160 ECPublicKey publicKey1, ECPrivateKey privateKey1, in testKnownAnswer() 161 ECPublicKey publicKey2, ECPrivateKey privateKey2, in testKnownAnswer() 465 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey() 468 return (ECPrivateKey) keyFactory.generatePrivate(new PKCS8EncodedKeySpec(pkcs8EncodedKey)); in getPrivateKey() 477 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 23 import org.bouncycastle.jce.interfaces.ECPrivateKey; 224 if (key instanceof ECPrivateKey) in generatePrivateKeyParameter() 226 ECPrivateKey k = (ECPrivateKey)key; in generatePrivateKeyParameter() 249 else if (key instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter() 251 … java.security.interfaces.ECPrivateKey privKey = (java.security.interfaces.ECPrivateKey)key; in generatePrivateKeyParameter() 271 if (privateKey instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 24 import com.android.org.bouncycastle.jce.interfaces.ECPrivateKey; 226 if (key instanceof ECPrivateKey) in generatePrivateKeyParameter() 228 ECPrivateKey k = (ECPrivateKey)key; in generatePrivateKeyParameter() 251 else if (key instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter() 253 … java.security.interfaces.ECPrivateKey privKey = (java.security.interfaces.ECPrivateKey)key; in generatePrivateKeyParameter() 273 if (privateKey instanceof java.security.interfaces.ECPrivateKey) in generatePrivateKeyParameter()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | KeyPairGeneratorTest.java | 42 import java.security.interfaces.ECPrivateKey; 461 if (k instanceof ECPrivateKey) { in test_KeyWithAllKeyFactories() 462 assertECPrivateKeyEquals((ECPrivateKey) k, (ECPrivateKey) privKey); in test_KeyWithAllKeyFactories() 481 private static void assertECPrivateKeyEquals(ECPrivateKey expected, ECPrivateKey actual) { in assertECPrivateKeyEquals()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | KeyPairGeneratorTest.java | 43 import java.security.interfaces.ECPrivateKey; 464 if (k instanceof ECPrivateKey) { in test_KeyWithAllKeyFactories() 465 assertECPrivateKeyEquals((ECPrivateKey) k, (ECPrivateKey) privKey); in test_KeyWithAllKeyFactories() 484 private static void assertECPrivateKeyEquals(ECPrivateKey expected, ECPrivateKey actual) { in assertECPrivateKeyEquals()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PrivateKeyFactory.java | 26 import org.bouncycastle.asn1.sec.ECPrivateKey; 176 ECPrivateKey ec = ECPrivateKey.getInstance(keyInfo.parsePrivateKey()); in createKey()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 24 import java.security.interfaces.ECPrivateKey; 73 keyPairGenerator.initialize(((ECPrivateKey) originalPrivateKey).getParams()); in getPrivateKey()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 25 import java.security.interfaces.ECPrivateKey; 75 keyPairGenerator.initialize(((ECPrivateKey) originalPrivateKey).getParams()); in getPrivateKey()
|