X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=serpent%2Fserpent-sboxes_c.c;h=5deb809198d241662b28d2beee7e7cf2a4029a29;hp=3a59969cee744497ff7074679db388d496faaaab;hb=4b5da1dc27a791b5c448274a3db09cd035b33493;hpb=d32eba56ce10ea6b9eff123b50d9842673b38f2b diff --git a/serpent/serpent-sboxes_c.c b/serpent/serpent-sboxes_c.c index 3a59969..5deb809 100644 --- a/serpent/serpent-sboxes_c.c +++ b/serpent/serpent-sboxes_c.c @@ -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 #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, void* w){ +static void sbox128x(uint8_t box, void *w){ uint8_t sb[16]; uint8_t i,t,x; box &= 0x0f;