SHA1 / SHA256 and HMAC-SHA1 / HMAC-SHA256 Hash library
SHA1 / SHA256 and HMAC-SHA1 / HMACSHA256 Hash library
Main Page
Related Pages
Classes
Examples
Sha
sha256_config.h
1
#ifndef Sha256_config_h
2
#define Sha256_config_h
3
4
#include <string.h>
5
6
#if (defined(__linux) || defined(linux)) && !defined(__ARDUINO_x86__)
7
#define SHA256_LINUX
8
#include <stdint.h>
9
#include <stdio.h>
10
#include <stdlib.h>
11
#include <sys/time.h>
12
#include <unistd.h>
13
#else
14
#include "arduino.h"
15
#endif
16
17
#if (defined(__linux) || defined(linux)) || defined(__ARDUINO_X86__)
18
#define memcpy_P memcpy
19
#undef PROGMEM
20
#define PROGMEM __attribute__(( section(".progmem.data") ))
21
#define pgm_read_dword(p) (*(p))
22
#if defined(__ARDUINO_X86__)
23
#include "Print.h"
24
#endif
25
#else
26
#include <avr/io.h>
27
#include <avr/pgmspace.h>
28
#include "Print.h"
29
#endif
30
31
#include <inttypes.h>
32
33
#define HASH_LENGTH 32
34
#define BLOCK_LENGTH 64
35
36
#endif
Generated on Thu Feb 12 2015 17:56:44 for SHA1 / SHA256 and HMAC-SHA1 / HMAC-SHA256 Hash library by
1.8.9.1