/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLECGroupContext.java | 38 static OpenSSLECGroupContext getCurveByName(String curveName) { in getCurveByName() argument 41 if ("secp256r1".equals(curveName)) { in getCurveByName() 42 curveName = "prime256v1"; in getCurveByName() 45 final long ctx = NativeCrypto.EC_GROUP_new_by_curve_name(curveName); in getCurveByName() 71 String curveName = Platform.getCurveName(params); in getInstance() local 72 if (curveName != null) { in getInstance() 73 return OpenSSLECGroupContext.getCurveByName(curveName); in getInstance() 101 curveName = "secp224r1"; in getInstance() 109 curveName = "prime256v1"; in getInstance() 117 curveName = "secp384r1"; in getInstance() [all …]
|
D | OpenSSLECKeyPairGenerator.java | 61 final String curveName = SIZE_TO_CURVE_NAME.get(DEFAULT_KEY_SIZE); in generateKeyPair() local 62 group = OpenSSLECGroupContext.getCurveByName(curveName); in generateKeyPair() 64 throw new RuntimeException("Curve not recognized: " + curveName); in generateKeyPair() 102 final String curveName = ecParam.getName(); in initialize() local 109 .getCurveByName(curveName); in initialize() 111 throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); in initialize() 124 for (String curveName : SIZE_TO_CURVE_NAME.values()) { in assertCurvesAreValid() 125 if (OpenSSLECGroupContext.getCurveByName(curveName) == null) { in assertCurvesAreValid() 126 invalidCurves.add(curveName); in assertCurvesAreValid()
|
D | NativeCrypto.java | 155 static native long EC_GROUP_new_by_curve_name(String curveName); in EC_GROUP_new_by_curve_name() argument
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECGroupContext.java | 39 static OpenSSLECGroupContext getCurveByName(String curveName) { in getCurveByName() argument 42 if ("secp256r1".equals(curveName)) { in getCurveByName() 43 curveName = "prime256v1"; in getCurveByName() 46 final long ctx = NativeCrypto.EC_GROUP_new_by_curve_name(curveName); in getCurveByName() 72 String curveName = Platform.getCurveName(params); in getInstance() local 73 if (curveName != null) { in getInstance() 74 return OpenSSLECGroupContext.getCurveByName(curveName); in getInstance() 102 curveName = "secp224r1"; in getInstance() 110 curveName = "prime256v1"; in getInstance() 118 curveName = "secp384r1"; in getInstance() [all …]
|
D | OpenSSLECKeyPairGenerator.java | 65 final String curveName = SIZE_TO_CURVE_NAME.get(DEFAULT_KEY_SIZE); in generateKeyPair() local 66 group = OpenSSLECGroupContext.getCurveByName(curveName); in generateKeyPair() 68 throw new RuntimeException("Curve not recognized: " + curveName); in generateKeyPair() 106 final String curveName = ecParam.getName(); in initialize() local 113 .getCurveByName(curveName); in initialize() 115 throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); in initialize() 128 for (String curveName : SIZE_TO_CURVE_NAME.values()) { in assertCurvesAreValid() 129 if (OpenSSLECGroupContext.getCurveByName(curveName) == null) { in assertCurvesAreValid() 130 invalidCurves.add(curveName); in assertCurvesAreValid()
|
D | NativeCrypto.java | 161 static native long EC_GROUP_new_by_curve_name(String curveName); in EC_GROUP_new_by_curve_name() argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | ECUtils.java | 33 static X9ECParameters getDomainParametersFromName(String curveName) in getDomainParametersFromName() argument 38 if (curveName.charAt(0) >= '0' && curveName.charAt(0) <= '2') in getDomainParametersFromName() 40 ASN1ObjectIdentifier oidID = new ASN1ObjectIdentifier(curveName); in getDomainParametersFromName() 45 if (curveName.indexOf(' ') > 0) in getDomainParametersFromName() 47 curveName = curveName.substring(curveName.indexOf(' ') + 1); in getDomainParametersFromName() 48 domainParameters = ECUtil.getNamedCurveByName(curveName); in getDomainParametersFromName() 52 domainParameters = ECUtil.getNamedCurveByName(curveName); in getDomainParametersFromName() 58 domainParameters = ECUtil.getNamedCurveByName(curveName); in getDomainParametersFromName()
|
D | AlgorithmParametersSpi.java | 25 private String curveName; field in AlgorithmParametersSpi 45 curveName = ecGenParameterSpec.getName(); in engineInit() 47 ecParameterSpec = new ECNamedCurveSpec(curveName, in engineInit() 54 curveName = ((ECNamedCurveSpec)algorithmParameterSpec).getName(); in engineInit() 58 curveName = null; in engineInit() 89 curveName = ECNamedCurveTable.getName(curveId); in engineInit() 90 if (curveName == null) in engineInit() 92 curveName = curveId.getId(); in engineInit() 114 if (curveName != null) in engineGetParameterSpec() 116 ASN1ObjectIdentifier namedCurveOid = ECUtil.getNamedCurveOid(curveName); in engineGetParameterSpec() [all …]
|
D | KeyPairGeneratorSpi.java | 212 protected ECNamedCurveSpec createNamedCurveSpec(String curveName) in createNamedCurveSpec() argument 217 X9ECParameters p = ECUtils.getDomainParametersFromName(curveName); in createNamedCurveSpec() 223 p = ECNamedCurveTable.getByOID(new ASN1ObjectIdentifier(curveName)); in createNamedCurveSpec() 228 p = (X9ECParameters)extraCurves.get(new ASN1ObjectIdentifier(curveName)); in createNamedCurveSpec() 232 … throw new InvalidAlgorithmParameterException("unknown curve OID: " + curveName); in createNamedCurveSpec() 238 … throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); in createNamedCurveSpec() 245 … return new ECNamedCurveSpec(curveName, p.getCurve(), p.getG(), p.getN(), p.getH(), seed); in createNamedCurveSpec() 248 protected void initializeNamedCurve(String curveName, SecureRandom random) in initializeNamedCurve() argument 251 ECNamedCurveSpec namedCurve = createNamedCurveSpec(curveName); in initializeNamedCurve()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | ECUtils.java | 34 static X9ECParameters getDomainParametersFromName(String curveName) in getDomainParametersFromName() argument 39 if (curveName.charAt(0) >= '0' && curveName.charAt(0) <= '2') in getDomainParametersFromName() 41 ASN1ObjectIdentifier oidID = new ASN1ObjectIdentifier(curveName); in getDomainParametersFromName() 46 if (curveName.indexOf(' ') > 0) in getDomainParametersFromName() 48 curveName = curveName.substring(curveName.indexOf(' ') + 1); in getDomainParametersFromName() 49 domainParameters = ECUtil.getNamedCurveByName(curveName); in getDomainParametersFromName() 53 domainParameters = ECUtil.getNamedCurveByName(curveName); in getDomainParametersFromName() 59 domainParameters = ECUtil.getNamedCurveByName(curveName); in getDomainParametersFromName()
|
D | AlgorithmParametersSpi.java | 29 private String curveName; field in AlgorithmParametersSpi 49 curveName = ecGenParameterSpec.getName(); in engineInit() 51 ecParameterSpec = new ECNamedCurveSpec(curveName, in engineInit() 58 curveName = ((ECNamedCurveSpec)algorithmParameterSpec).getName(); in engineInit() 62 curveName = null; in engineInit() 93 curveName = ECNamedCurveTable.getName(curveId); in engineInit() 94 if (curveName == null) in engineInit() 96 curveName = curveId.getId(); in engineInit() 118 if (curveName != null) in engineGetParameterSpec() 120 ASN1ObjectIdentifier namedCurveOid = ECUtil.getNamedCurveOid(curveName); in engineGetParameterSpec() [all …]
|
D | KeyPairGeneratorSpi.java | 219 protected ECNamedCurveSpec createNamedCurveSpec(String curveName) in createNamedCurveSpec() argument 224 X9ECParameters p = ECUtils.getDomainParametersFromName(curveName); in createNamedCurveSpec() 230 p = ECNamedCurveTable.getByOID(new ASN1ObjectIdentifier(curveName)); in createNamedCurveSpec() 235 p = (X9ECParameters)extraCurves.get(new ASN1ObjectIdentifier(curveName)); in createNamedCurveSpec() 239 … throw new InvalidAlgorithmParameterException("unknown curve OID: " + curveName); in createNamedCurveSpec() 245 … throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); in createNamedCurveSpec() 252 … return new ECNamedCurveSpec(curveName, p.getCurve(), p.getG(), p.getN(), p.getH(), seed); in createNamedCurveSpec() 255 protected void initializeNamedCurve(String curveName, SecureRandom random) in initializeNamedCurve() argument 258 ECNamedCurveSpec namedCurve = createNamedCurveSpec(curveName); in initializeNamedCurve()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 305 String curveName) in getNamedCurveOid() argument 307 String name = curveName; in getNamedCurveOid() 364 String curveName) in getNamedCurveByName() argument 366 X9ECParameters params = CustomNamedCurves.getByName(curveName); in getNamedCurveByName() 370 params = ECNamedCurveTable.getByName(curveName); in getNamedCurveByName()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | ECUtil.java | 307 String curveName) in getNamedCurveOid() argument 309 String name = curveName; in getNamedCurveOid() 366 String curveName) in getNamedCurveByName() argument 368 X9ECParameters params = CustomNamedCurves.getByName(curveName); in getNamedCurveByName() 372 params = ECNamedCurveTable.getByName(curveName); in getNamedCurveByName()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | KeyPairGeneratorTest.java | 358 for (String curveName : EC_NAMED_CURVES) { in test_KeyPairGenerator() 359 kpg.initialize(new ECGenParameterSpec(curveName)); in test_KeyPairGenerator() 363 kpg.initialize(new ECGenParameterSpec(curveName), (SecureRandom) null); in test_KeyPairGenerator() 367 kpg.initialize(new ECGenParameterSpec(curveName), new SecureRandom()); in test_KeyPairGenerator()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | KeyPairGeneratorTest.java | 361 for (String curveName : EC_NAMED_CURVES) { in test_KeyPairGenerator() 362 kpg.initialize(new ECGenParameterSpec(curveName)); in test_KeyPairGenerator() 366 kpg.initialize(new ECGenParameterSpec(curveName), (SecureRandom) null); in test_KeyPairGenerator() 370 kpg.initialize(new ECGenParameterSpec(curveName), new SecureRandom()); in test_KeyPairGenerator()
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | Platform.java | 117 static void setCurveName(ECParameterSpec spec, String curveName) { in setCurveName() argument 118 spec.setCurveName(curveName); in setCurveName()
|
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | Platform.java | 118 static void setCurveName(ECParameterSpec spec, String curveName) { in setCurveName() argument 119 spec.setCurveName(curveName); in setCurveName()
|
/external/conscrypt/android/src/main/java/org/conscrypt/ |
D | Platform.java | 120 public static void setCurveName(ECParameterSpec spec, String curveName) { in setCurveName() argument 123 setCurveName.invoke(spec, curveName); in setCurveName()
|
/external/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/ |
D | Platform.java | 227 @SuppressWarnings("unused") String curveName) { in setCurveName() argument
|
/external/conscrypt/openjdk/src/main/java/org/conscrypt/ |
D | Platform.java | 226 @SuppressWarnings("unused") String curveName) { in setCurveName() argument
|
/external/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | native_crypto.cc | 1673 ScopedUtfChars curveName(env, curveNameJava); in NativeCrypto_EC_GROUP_new_by_curve_name() local 1674 if (curveName.c_str() == nullptr) { in NativeCrypto_EC_GROUP_new_by_curve_name() 1677 JNI_TRACE("EC_GROUP_new_by_curve_name(%s)", curveName.c_str()); in NativeCrypto_EC_GROUP_new_by_curve_name() 1679 int nid = OBJ_sn2nid(curveName.c_str()); in NativeCrypto_EC_GROUP_new_by_curve_name() 1681 JNI_TRACE("EC_GROUP_new_by_curve_name(%s) => unknown NID name", curveName.c_str()); in NativeCrypto_EC_GROUP_new_by_curve_name() 1687 JNI_TRACE("EC_GROUP_new_by_curve_name(%s) => unknown NID %d", curveName.c_str(), nid); in NativeCrypto_EC_GROUP_new_by_curve_name() 1692 JNI_TRACE("EC_GROUP_new_by_curve_name(%s) => %p", curveName.c_str(), group); in NativeCrypto_EC_GROUP_new_by_curve_name()
|