CARME-M4 BSP
V1.5
|
This file provides high level functions to compute the HASH SHA1 and HMAC SHA1 Digest of an input message. It uses the stm32f4xx_hash.c/.h drivers to access the STM32F4xx HASH peripheral. More...
#include "stm32f4xx_hash.h"
Go to the source code of this file.
Macros | |
#define | SHA1BUSY_TIMEOUT ((uint32_t) 0x00010000) |
Functions | |
ErrorStatus | HASH_SHA1 (uint8_t *Input, uint32_t Ilen, uint8_t Output[20]) |
Compute the HASH SHA1 digest. More... | |
ErrorStatus | HMAC_SHA1 (uint8_t *Key, uint32_t Keylen, uint8_t *Input, uint32_t Ilen, uint8_t Output[20]) |
Compute the HMAC SHA1 digest. More... | |
This file provides high level functions to compute the HASH SHA1 and HMAC SHA1 Digest of an input message. It uses the stm32f4xx_hash.c/.h drivers to access the STM32F4xx HASH peripheral.
=================================================================== ##### How to use this driver ##### =================================================================== [..] (#) Enable The HASH controller clock using RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_HASH, ENABLE); function. (#) Calculate the HASH SHA1 Digest using HASH_SHA1() function. (#) Calculate the HMAC SHA1 Digest using HMAC_SHA1() function.
@attention <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2> 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.
Definition in file stm32f4xx_hash_sha1.c.