/* Checks whether the specified HASH flag is set or not.  */
FlagStatus HASH_GetFlagStatus(uint32_t HASH_FLAG)
/* Checks whether the specified HASH flag is set or not.  */
FlagStatus HASH_GetFlagStatus(uint32_t HASH_FLAG)
{
  FlagStatus bitstatus = RESET;
  uint32_t tempreg = 0;
  assert_param(IS_HASH_GET_FLAG(HASH_FLAG));
  if ((HASH_FLAG & HASH_FLAG_DINNE) != (uint32_t)RESET ) 
  {
    tempreg = HASH->CR;
  }
  else
  {
    tempreg = HASH->SR;
  }
  if ((tempreg & HASH_FLAG) != (uint32_t)RESET)
  {
    bitstatus = SET;
  }
  else
  {
    bitstatus = RESET;
  }
  return  bitstatus;
}