/* Allocates and initializes one RSA context for subsequent use. */
VOID* EFIAPI RsaNew(VOID)
/* Allocates and initializes one RSA context for subsequent use. */
VOID* EFIAPI RsaNew(VOID)
{
  VOID  *RsaContext;
  RsaContext = AllocateZeroPool (sizeof (mbedtls_rsa_context));
  if (RsaContext == NULL) {
    return RsaContext;
  }
  mbedtls_rsa_init (RsaContext);
  if (mbedtls_rsa_set_padding (RsaContext, MBEDTLS_RSA_PKCS_V15, MBEDTLS_MD_NONE) != 0) {
    return NULL;
  }
  return RsaContext;
}