ellipticCurveHash static method

Digest ellipticCurveHash(
  1. int id
)

Implementation

static Digest ellipticCurveHash(int id) {
  switch (id) {
    case ECDH_SHA2_NISTP256:
      return SHA256Digest();
    case ECDH_SHA2_NISTP384:
      return SHA384Digest();
    case ECDH_SHA2_NISTP521:
      return SHA512Digest();
    default:
      return null;
  }
}