CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
sha1_routines.h File Reference

Software implementation of the SHA1 algorithm. More...

#include "atca_compiler.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>

Data Structures

struct  CL_HashContext
 

Macros

#define U8   uint8_t
 
#define U16   uint16_t
 
#define U32   uint32_t
 
#define memcpy_P   memmove
 
#define strcpy_P   strcpy
 
#define _WDRESET()
 
#define _NOP()
 
#define leftRotate(x, n)   (x) = (((x) << (n)) | ((x) >> (32 - (n))))
 

Functions

void shaEngine (uint32_t *buf, uint32_t *h)
 
void CL_hashInit (CL_HashContext *ctx)
 
void CL_hashUpdate (CL_HashContext *ctx, const uint8_t *src, int nbytes)
 
void CL_hashFinal (CL_HashContext *ctx, uint8_t *dest)
 
void CL_hash (uint8_t *msg, int msgBytes, uint8_t *dest)
 

Detailed Description

Software implementation of the SHA1 algorithm.