X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Frijndael-api-fst.c;h=b55df797b55a0ba112ef4a14b458058c13917ef2;hb=d2c57e54a1f805be7c7859f12962a3804a4a635d;hp=41f58a1632d41156951d33a4a7ef8afbffa87653;hpb=58aa025deca628dabf381fe57bda38dd690bfa59;p=gnulib.git diff --git a/lib/rijndael-api-fst.c b/lib/rijndael-api-fst.c index 41f58a163..b55df797b 100644 --- a/lib/rijndael-api-fst.c +++ b/lib/rijndael-api-fst.c @@ -1,5 +1,5 @@ /* rijndael-api-fst.c --- Rijndael cipher implementation. - * Copyright (C) 2005 Free Software Foundation, Inc. + * Copyright (C) 2005, 2006 Free Software Foundation, Inc. * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published @@ -25,9 +25,7 @@ * http://www.iaik.tu-graz.ac.at/research/krypto/AES/old/~rijmen/rijndael/rijndael-fst-3.0.zip */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /** * rijndael-api-fst.c @@ -361,10 +359,10 @@ rijndaelBlockDecrypt (rijndaelCipherInstance *cipher, size_t i, k, t, numBlocks; char block[16], *iv; - if (cipher == NULL || - key == NULL || - cipher->mode != RIJNDAEL_MODE_CFB1 - && key->direction == RIJNDAEL_DIR_ENCRYPT) + if (cipher == NULL + || key == NULL + || (cipher->mode != RIJNDAEL_MODE_CFB1 + && key->direction == RIJNDAEL_DIR_ENCRYPT)) { return RIJNDAEL_BAD_CIPHER_STATE; }