]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - cscipher/cscipher_small.c
a lot of fixes
[avr-crypto-lib.git] / cscipher / cscipher_small.c
index 220bcc9247fca9b62f2849b3fa4d79ed9977b722..640bcf271bb373408f08d61436d82bf276dc8c67 100644 (file)
@@ -57,11 +57,11 @@ uint8_t p(uint8_t a){
 #define P(a) pgm_read_byte(cscipher_sbox+(a))
 #endif
 
-static uint8_t round_const[] PROGMEM = {
+static const uint8_t round_const[] PROGMEM = {
        0xb7, 0xe1, 0x51, 0x62, 0x8a, 0xed, 0x2a, 0x6a,
        0xbf, 0x71, 0x58, 0x80, 0x9c, 0xf4, 0xf3, 0xc7 };
 
-static uint8_t ks_const[] PROGMEM = {
+static const uint8_t ks_const[] PROGMEM = {
        0x29,0x0d,0x61,0x40,0x9c,0xeb,0x9e,0x8f,
        0x1f,0x85,0x5f,0x58,0x5b,0x01,0x39,0x86,
        0x97,0x2e,0xd7,0xd6,0x35,0xae,0x17,0x16,