ellipticCurveSecretBits static method

int ellipticCurveSecretBits(
  1. int id
)

Implementation

static int ellipticCurveSecretBits(int id) {
  switch (id) {
    case ECDSA_SHA2_NISTP256:
      return 256;
    case ECDSA_SHA2_NISTP384:
      return 384;
    case ECDSA_SHA2_NISTP521:
      return 521;
    default:
      return null;
  }
}