STM32F2 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F2 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f2xx_hash_md5.c File Reference

This file provides high level functions to compute the HASH MD5 and HMAC MD5 Digest of an input message. It uses the stm32f2xx_hash.c/.h drivers to access the STM32F2xx HASH peripheral. More...

#include "stm32f2xx_hash.h"

Macros

#define MD5BUSY_TIMEOUT   ((uint32_t) 0x00010000)
 

Functions

ErrorStatus HASH_MD5 (uint8_t *Input, uint32_t Ilen, uint8_t Output[16])
 Compute the HASH MD5 digest. More...
 
ErrorStatus HMAC_MD5 (uint8_t *Key, uint32_t Keylen, uint8_t *Input, uint32_t Ilen, uint8_t Output[16])
 Compute the HMAC MD5 digest. More...
 

Detailed Description

This file provides high level functions to compute the HASH MD5 and HMAC MD5 Digest of an input message. It uses the stm32f2xx_hash.c/.h drivers to access the STM32F2xx HASH peripheral.

Author
MCD Application Team
Version
V1.1.2
Date
05-March-2012
*    
*          ===================================================================
*                                   How to use this driver
*          ===================================================================
*          1. Enable The HASH controller clock using 
*            RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE); function.
*
*          2. Calculate the HASH MD5 Digest using HASH_MD5() function.
*
*          3. Calculate the HMAC MD5 Digest using HMAC_MD5() 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.