This file contains all the functions prototypes for the HASH firmware library. More...
#include "stm32f4xx.h"
Go to the source code of this file.
Classes | |
struct | HASH_Context |
HASH context swapping structure definition. More... | |
struct | HASH_InitTypeDef |
HASH Init structure definition. More... | |
struct | HASH_MsgDigest |
HASH message digest result structure definition. More... | |
Functions | |
void | HASH_AutoStartDigest (FunctionalState NewState) |
Enables or disables auto-start message padding and calculation of the final message digest at the end of DMA transfer. More... | |
void | HASH_ClearFlag (uint32_t HASH_FLAG) |
Clears the HASH flags. More... | |
void | HASH_ClearITPendingBit (uint32_t HASH_IT) |
Clears the HASH interrupt pending bit(s). More... | |
void | HASH_DataIn (uint32_t Data) |
Writes data in the Data Input FIFO. More... | |
void | HASH_DeInit (void) |
De-initializes the HASH peripheral registers to their default reset values. More... | |
void | HASH_DMACmd (FunctionalState NewState) |
Enables or disables the HASH DMA interface. More... | |
void | HASH_GetDigest (HASH_MsgDigest *HASH_MessageDigest) |
Provides the message digest result. More... | |
FlagStatus | HASH_GetFlagStatus (uint32_t HASH_FLAG) |
Checks whether the specified HASH flag is set or not. More... | |
uint8_t | HASH_GetInFIFOWordsNbr (void) |
Returns the number of words already pushed into the IN FIFO. More... | |
ITStatus | HASH_GetITStatus (uint32_t HASH_IT) |
Checks whether the specified HASH interrupt has occurred or not. More... | |
void | HASH_Init (HASH_InitTypeDef *HASH_InitStruct) |
Initializes the HASH peripheral according to the specified parameters in the HASH_InitStruct structure. More... | |
void | HASH_ITConfig (uint32_t HASH_IT, FunctionalState NewState) |
Enables or disables the specified HASH interrupts. More... | |
ErrorStatus | HASH_MD5 (uint8_t *Input, uint32_t Ilen, uint8_t Output[16]) |
Compute the HASH MD5 digest. More... | |
void | HASH_Reset (void) |
Resets the HASH processor core, so that the HASH will be ready to compute the message digest of a new message. More... | |
void | HASH_RestoreContext (HASH_Context *HASH_ContextRestore) |
Restore the Hash peripheral Context. More... | |
void | HASH_SaveContext (HASH_Context *HASH_ContextSave) |
Save the Hash peripheral Context. More... | |
void | HASH_SetLastWordValidBitsNbr (uint16_t ValidNumber) |
Configure the Number of valid bits in last word of the message. More... | |
ErrorStatus | HASH_SHA1 (uint8_t *Input, uint32_t Ilen, uint8_t Output[20]) |
Compute the HASH SHA1 digest. More... | |
void | HASH_StartDigest (void) |
Starts the message padding and calculation of the final message. More... | |
void | HASH_StructInit (HASH_InitTypeDef *HASH_InitStruct) |
Fills each HASH_InitStruct member with its default value. 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... | |
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 contains all the functions prototypes for the HASH firmware library.
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.h.