ellipticCurveHash static method
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;
}
}