ellipticCurve static method

ECDomainParameters ellipticCurve(
  1. int id
)

Implementation

static ECDomainParameters ellipticCurve(int id) {
  switch (id) {
    case ECDH_SHA2_NISTP256:
      return ECCurve_secp256r1();
    case ECDH_SHA2_NISTP384:
      return ECCurve_secp384r1();
    case ECDH_SHA2_NISTP521:
      return ECCurve_secp521r1();
    default:
      return null;
  }
}