]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - jh/jh_tables.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / jh / jh_tables.c
index 33c83a4590458fe83765f482205cd5fa8fad4a5e..65464c626326f7f64ab2c79bedf71fc328b1ef76 100644 (file)
@@ -1,7 +1,7 @@
 /* jh_tables.c */
 /*
     This file is part of the ARM-Crypto-Lib.
-    Copyright (C) 2006-2010 Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 #include <stdint.h>
 #include <avr/pgmspace.h>
 
-uint8_t jh_permutation_table[] PROGMEM = {
+const uint8_t jh_permutation_table[] PROGMEM = {
        0x00, 0x03, 0x04, 0x07, 0x08, 0x0B, 0x0C, 0x0F, 0x10, 0x13, 0x14, 0x17, 0x18, 0x1B, 0x1C, 0x1F,
        0x20, 0x23, 0x24, 0x27, 0x28, 0x2B, 0x2C, 0x2F, 0x30, 0x33, 0x34, 0x37, 0x38, 0x3B, 0x3C, 0x3F,
        0x40, 0x43, 0x44, 0x47, 0x48, 0x4B, 0x4C, 0x4F, 0x50, 0x53, 0x54, 0x57, 0x58, 0x5B, 0x5C, 0x5F,
@@ -39,7 +39,7 @@ uint8_t jh_permutation_table[] PROGMEM = {
        0xE2, 0xE1, 0xE6, 0xE5, 0xEA, 0xE9, 0xEE, 0xED, 0xF2, 0xF1, 0xF6, 0xF5, 0xFA, 0xF9, 0xFE, 0xFD
 };
 
-uint8_t jh_lutbox[] PROGMEM = {
+const uint8_t jh_lutbox[] PROGMEM = {
        0xA8, 0xB1, 0x35, 0xEA, 0x2C, 0x0D, 0xD2, 0x6E, 0x90, 0xCB, 0xF3, 0x77, 0x56, 0x14, 0x89, 0x4F,
        0x19, 0x00, 0x84, 0x5B, 0x9D, 0xBC, 0x63, 0xDF, 0x21, 0x7A, 0x42, 0xC6, 0xE7, 0xA5, 0x38, 0xFE,
        0x61, 0x78, 0xFC, 0x23, 0xE5, 0xC4, 0x1B, 0xA7, 0x59, 0x02, 0x3A, 0xBE, 0x9F, 0xDD, 0x40, 0x86,
@@ -112,7 +112,7 @@ uint8_t jh_lutbox[] PROGMEM = {
        0x80, 0x5F, 0x25, 0x7E, 0x46, 0x04, 0xC2, 0xFA, 0x3C, 0xA1, 0xE3, 0x67, 0xB8, 0x99, 0x1D, 0xDB
 };
 
-uint8_t jh_round_const[] PROGMEM = {
+const uint8_t jh_round_const[] PROGMEM = {
   /* C_00: */
        0x6a, 0x09, 0xe6, 0x67, 0xf3, 0xbc, 0xc9, 0x08,
        0xb2, 0xfb, 0x13, 0x66, 0xea, 0x95, 0x7d, 0x3e,