Home
last modified time | relevance | path

Searched refs:curveName (Results 1 – 7 of 7) sorted by relevance

/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java36 public static OpenSSLECGroupContext getCurveByName(String curveName) { in getCurveByName() argument
39 if ("secp256r1".equals(curveName)) { in getCurveByName()
40 curveName = "prime256v1"; in getCurveByName()
41 } else if ("secp192r1".equals(curveName)) { in getCurveByName()
42 curveName = "prime192v1"; in getCurveByName()
45 final long ctx = NativeCrypto.EC_GROUP_new_by_curve_name(curveName); in getCurveByName()
80 String curveName = Platform.getCurveName(params); in getInstance() local
81 if (curveName != null) { in getInstance()
82 return OpenSSLECGroupContext.getCurveByName(curveName); in getInstance()
110 curveName = "secp224r1"; in getInstance()
[all …]
DOpenSSLECKeyPairGenerator.java56 final String curveName = SIZE_TO_CURVE_NAME.get(DEFAULT_KEY_SIZE); in generateKeyPair() local
57 group = OpenSSLECGroupContext.getCurveByName(curveName); in generateKeyPair()
59 throw new RuntimeException("Curve not recognized: " + curveName); in generateKeyPair()
97 final String curveName = ecParam.getName(); in initialize() local
104 .getCurveByName(curveName); in initialize()
106 throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); in initialize()
119 for (String curveName : SIZE_TO_CURVE_NAME.values()) { in assertCurvesAreValid()
120 if (OpenSSLECGroupContext.getCurveByName(curveName) == null) { in assertCurvesAreValid()
121 invalidCurves.add(curveName); in assertCurvesAreValid()
DNativeCrypto.java172 public 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/
DKeyPairGeneratorSpi.java210 protected ECNamedCurveSpec createNamedCurveSpec(String curveName) in createNamedCurveSpec() argument
215 X9ECParameters p = ECNamedCurveTable.getByName(curveName); in createNamedCurveSpec()
221 p = ECNamedCurveTable.getByOID(new ASN1ObjectIdentifier(curveName)); in createNamedCurveSpec()
224 … throw new InvalidAlgorithmParameterException("unknown curve OID: " + curveName); in createNamedCurveSpec()
229 … throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName); in createNamedCurveSpec()
236 … return new ECNamedCurveSpec(curveName, p.getCurve(), p.getG(), p.getN(), p.getH(), seed); in createNamedCurveSpec()
239 protected void initializeNamedCurve(String curveName, SecureRandom random) in initializeNamedCurve() argument
242 ECNamedCurveSpec namedCurve = createNamedCurveSpec(curveName); in initializeNamedCurve()
/external/conscrypt/src/platform/java/org/conscrypt/
DPlatform.java98 public static void setCurveName(ECParameterSpec spec, String curveName) { in setCurveName() argument
99 spec.setCurveName(curveName); in setCurveName()
/external/conscrypt/src/compat/java/org/conscrypt/
DPlatform.java85 public static void setCurveName(ECParameterSpec spec, String curveName) { in setCurveName() argument
88 setCurveName.invoke(spec, curveName); in setCurveName()
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp3534 ScopedUtfChars curveName(env, curveNameJava); local
3535 if (curveName.c_str() == NULL) {
3538 JNI_TRACE("EC_GROUP_new_by_curve_name(%s)", curveName.c_str());
3540 int nid = OBJ_sn2nid(curveName.c_str());
3542 JNI_TRACE("EC_GROUP_new_by_curve_name(%s) => unknown NID name", curveName.c_str());
3548 JNI_TRACE("EC_GROUP_new_by_curve_name(%s) => unknown NID %d", curveName.c_str(), nid);
3553 JNI_TRACE("EC_GROUP_new_by_curve_name(%s) => %p", curveName.c_str(), group);