Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_des.c File Reference

This file provides high level functions to encrypt and decrypt an input message using DES in ECB/CBC modes. It uses the stm32f4xx_cryp.c/.h drivers to access the STM32F4xx CRYP peripheral. More...

#include "stm32f4xx_cryp.h"

Defines

#define DESBUSY_TIMEOUT   ((uint32_t) 0x00010000)

Functions

ErrorStatus CRYP_DES_ECB (uint8_t Mode, uint8_t Key[8], uint8_t *Input, uint32_t Ilength, uint8_t *Output)
 Encrypt and decrypt using DES in ECB Mode.
ErrorStatus CRYP_DES_CBC (uint8_t Mode, uint8_t Key[8], uint8_t InitVectors[8], uint8_t *Input, uint32_t Ilength, uint8_t *Output)
 Encrypt and decrypt using DES in CBC Mode.

Detailed Description

This file provides high level functions to encrypt and decrypt an input message using DES in ECB/CBC modes. It uses the stm32f4xx_cryp.c/.h drivers to access the STM32F4xx CRYP peripheral.

Author:
MCD Application Team
Version:
V1.0.2
Date:
05-March-2012
  *
  *          ===================================================================
  *                                   How to use this driver
  *          ===================================================================
  *          1. Enable The CRYP controller clock using 
  *            RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_CRYP, ENABLE); function.
  *
  *          2. Encrypt and decrypt using DES in ECB Mode using CRYP_DES_ECB()
  *             function.
  *
  *          3. Encrypt and decrypt using DES in CBC Mode using CRYP_DES_CBC()
  *             function.
  *
  *  
Attention:

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Generated on Fri Jun 22 00:58:29 2012 for STM32F4xx_StdPeriph_Driver by  doxygen 1.6.3