]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - serpent/serpent-sboxes_c.c
fixing E-Mail-Address & Copyright
[avr-crypto-lib.git] / serpent / serpent-sboxes_c.c
index 3a59969cee744497ff7074679db388d496faaaab..5deb809198d241662b28d2beee7e7cf2a4029a29 100644 (file)
@@ -1,7 +1,7 @@
 /* serpent-sboxes.c */
 /*
     This file is part of the AVR-Crypto-Lib.
-    Copyright (C) 2008  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
@@ -19,7 +19,7 @@
 /* serpent-sboxes.c
  * a non-bitsliced implementation of the serpent sboxes
  * author: Daniel Otte 
- * email:  daniel.otte@rub.de
+ * email:  bg@nerilex.org
  * license: GPLv3
  */
 
@@ -28,7 +28,7 @@
 #include <avr/pgmspace.h>
 #include "serpent-sboxes.h"
 
-uint8_t sbox[] PROGMEM = {
+const uint8_t sbox[] PROGMEM = {
  0x38, 0xF1, 0xA6, 0x5B, 0xED, 0x42, 0x70, 0x9C,
  0xFC, 0x27, 0x90, 0x5A, 0x1B, 0xE8, 0x6D, 0x34, 
  0x86, 0x79, 0x3C, 0xAF, 0xD1, 0xE4, 0x0B, 0x52,
@@ -92,7 +92,7 @@ static void serpent_fp(uint32_t *i, uint32_t *o){
 }
 
 /******************************************************************************/
-static void sbox128x(uint8_t box, voidw){
+static void sbox128x(uint8_t box, void *w){
        uint8_t sb[16];
        uint8_t i,t,x;
        box &= 0x0f;