5MP Motion Camera  1.1.1.1
A waterproof, low power, battery operated, motion activated, 5 mega-pixel, WiFi camera.
sha1.cpp File Reference
#include <string.h>
#include "sha1.h"

Macros

#define SHA1_K0   0x5a827999
 
#define SHA1_K20   0x6ed9eba1
 
#define SHA1_K40   0x8f1bbcdc
 
#define SHA1_K60   0xca62c1d6
 
#define HMAC_IPAD   0x36
 
#define HMAC_OPAD   0x5c
 

Variables

const uint8_t sha1InitState [] PROGMEM
 
Sha1Class Sha1
 

Macro Definition Documentation

◆ HMAC_IPAD

#define HMAC_IPAD   0x36

◆ HMAC_OPAD

#define HMAC_OPAD   0x5c

◆ SHA1_K0

#define SHA1_K0   0x5a827999

◆ SHA1_K20

#define SHA1_K20   0x6ed9eba1

◆ SHA1_K40

#define SHA1_K40   0x8f1bbcdc

◆ SHA1_K60

#define SHA1_K60   0xca62c1d6

Variable Documentation

◆ PROGMEM

const uint8_t sha1InitState [] PROGMEM
Initial value:
= {
0x01,0x23,0x45,0x67,
0x89,0xab,0xcd,0xef,
0xfe,0xdc,0xba,0x98,
0x76,0x54,0x32,0x10,
0xf0,0xe1,0xd2,0xc3
}

◆ Sha1

Sha1Class Sha1