/* Initializes the AES peripheral according to the specified parameters in the AES_InitStruct:  */
void AES_Init(AES_InitTypeDef *AES_InitStruct)
/* Initializes the AES peripheral according to the specified parameters in the AES_InitStruct:  */
void AES_Init(AES_InitTypeDef *AES_InitStruct)
{
  uint32_t tmpreg = 0;
  assert_param(IS_AES_MODE(AES_InitStruct->AES_Operation));
  assert_param(IS_AES_CHAINING(AES_InitStruct->AES_Chaining));
  assert_param(IS_AES_DATATYPE(AES_InitStruct->AES_DataType));
  tmpreg = AES->CR;
  tmpreg &= (uint32_t)CR_CLEAR_MASK;
  tmpreg |= (AES_InitStruct->AES_Operation | AES_InitStruct->AES_Chaining | AES_InitStruct->AES_DataType);
  AES->CR = (uint32_t) tmpreg;
}