/* Checks whether the specified AES flag is set or not.  */
FlagStatus AES_GetFlagStatus(uint32_t AES_FLAG)
/* Checks whether the specified AES flag is set or not.  */
FlagStatus AES_GetFlagStatus(uint32_t AES_FLAG)
{
  FlagStatus bitstatus = RESET;
  assert_param(IS_AES_FLAG(AES_FLAG));
  if ((AES->SR & AES_FLAG) != (uint32_t)RESET)
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  return  bitstatus;
}