ellipticCurveName static method

String ellipticCurveName(
  1. int id
)

Implementation

static String ellipticCurveName(int id) {
  switch (id) {
    case ECDSA_SHA2_NISTP256:
      return 'nistp256';
    case ECDSA_SHA2_NISTP384:
      return 'nistp384';
    case ECDSA_SHA2_NISTP521:
      return 'nistp521';
    default:
      return null;
  }
}