/* Allocates and Initializes one Elliptic Curve Context for subsequent use with the NID. */
VOID* EFIAPI EcNewByNid(IN UINTN Nid)
/* Allocates and Initializes one Elliptic Curve Context for subsequent use with the NID. */
VOID* EFIAPI EcNewByNid(IN UINTN Nid)
{
  INT32  OpenSslNid;
  OpenSslNid = CryptoNidToOpensslNid (Nid);
  if (OpenSslNid < 0) {
    return NULL;
  }
  return (VOID *)EC_KEY_new_by_curve_name (OpenSslNid);
}