]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - md5_sbox.h
moving from uart to cli
[avr-crypto-lib.git] / md5_sbox.h
index c421fad1242cc7706de0d844511be1427bbb85b0..597b3db412adae35e9895dce99665a314b3e9e9b 100644 (file)
@@ -1,6 +1,6 @@
 /* md5_sbox.h */
 /*
-    This file is part of the This file is part of the AVR-Crypto-Lib.
+    This file is part of the AVR-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
 #ifndef MD5_SBOX_H_
 #define MD5_SBOX_H_
 
-uint32_t md5_T[]={
+#include <stdint.h>
+#include <avr/pgmspace.h>
+
+uint32_t md5_T[] PROGMEM = {
        0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, 0xf57c0faf, 
        0x4787c62a, 0xa8304613, 0xfd469501, 0x698098d8, 0x8b44f7af, 
        0xffff5bb1, 0x895cd7be, 0x6b901122, 0xfd987193, 0xa679438e, 
@@ -32,6 +35,6 @@ uint32_t md5_T[]={
        0xe6db99e5, 0x1fa27cf8, 0xc4ac5665, 0xf4292244, 0x432aff97, 
        0xab9423a7, 0xfc93a039, 0x655b59c3, 0x8f0ccc92, 0xffeff47d, 
        0x85845dd1, 0x6fa87e4f, 0xfe2ce6e0, 0xa3014314, 0x4e0811a1, 
-       0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391};
+       0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391 };
 
 #endif /*MD5_SBOX_H_*/