AES 0.2.0 → 0.2.1
raw patch · 2 files changed
+3/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- AES.cabal +1/−1
- cbits/ctr_inc.c +2/−1
AES.cabal view
@@ -1,7 +1,7 @@ Name: AES Synopsis: Fast AES encryption/decryption for bytestrings Description: A zero-copy binding to Brian Gladman's AES implementation, including a copy of that implementation-Version: 0.2.0+Version: 0.2.1 License: BSD3 License-file: COPYING Copyright: Copyright (c) 2009 University of Tromsø
cbits/ctr_inc.c view
@@ -1,5 +1,6 @@ #include "aesopt.h" #include "ctr_inc.h"+#include <stdio.h> #if AES_BLOCK_SIZE != 16 # error AES block size wrong ?!@@ -8,7 +9,7 @@ void ctr_inc(unsigned char *cbuf) { uint_64t *ctr = (uint_64t*)cbuf; int word;- for (word = 0; word++; word < 2) {+ for (word = 0; word < 2; word++) { ctr[word]++; if (ctr[word]) break; }