Skip to content

Commit f8c3e15

Browse files
authored
Merge pull request #4 from mikeazo/master
Remove the AVR library
2 parents 0dac980 + c6f3925 commit f8c3e15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sha1.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
#include <string.h>
2-
#include <avr/io.h>
3-
#include <avr/pgmspace.h>
42
#include "sha1.h"
53

64
#define SHA1_K0 0x5a827999
75
#define SHA1_K20 0x6ed9eba1
86
#define SHA1_K40 0x8f1bbcdc
97
#define SHA1_K60 0xca62c1d6
108

11-
const uint8_t sha1InitState[] PROGMEM = {
9+
const uint8_t sha1InitState[] = {
1210
0x01,0x23,0x45,0x67, // H0
1311
0x89,0xab,0xcd,0xef, // H1
1412
0xfe,0xdc,0xba,0x98, // H2
@@ -17,7 +15,7 @@ const uint8_t sha1InitState[] PROGMEM = {
1715
};
1816

1917
void Sha1Class::init(void) {
20-
memcpy_P(state.b,sha1InitState,HASH_LENGTH);
18+
memcpy(state.b,sha1InitState,HASH_LENGTH);
2119
byteCount = 0;
2220
bufferOffset = 0;
2321
}

0 commit comments

Comments
 (0)