/* Retrieve a pointer to EVP message digest object. */
STATIC const EVP_MD* GetEvpMD(IN UINT16 DigestLen)
/* Retrieve a pointer to EVP message digest object. */
STATIC const EVP_MD* GetEvpMD(IN UINT16 DigestLen)
{
  switch (DigestLen) {
    case SHA256_DIGEST_SIZE:
      return EVP_sha256 ();
      break;
    case SHA384_DIGEST_SIZE:
      return EVP_sha384 ();
      break;
    case SHA512_DIGEST_SIZE:
      return EVP_sha512 ();
      break;
    default:
      return NULL;
  }
}