cipher-aes128 0.3.1 → 0.3.2
raw patch · 2 files changed
+4/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- cbits/aes/aes.c +3/−1
- cipher-aes128.cabal +1/−1
cbits/aes/aes.c view
@@ -376,12 +376,14 @@ block128_copy(block, (aes_block *)iv); - for ( ; nb_blocks-- > 0; block128_inc_be(block), output += 16, input += 16) {+ for ( ; nb_blocks-- > 0; output += 16, input += 16) {+ block128_inc_be(block); encrypt_ecb(key, (uint8_t *)&o, (uint8_t *)block, 1); block128_vxor((block128 *) output, &o, (block128 *) input); } if ((len % 16) != 0) {+ block128_inc_be(block); encrypt_ecb(key, (uint8_t *)&o, (uint8_t *)block, 1); for (i = 0; i < (len % 16); i++) { *output = ((uint8_t *) &o)[i] ^ *input;
cipher-aes128.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: cipher-aes128-version: 0.3.1+version: 0.3.2 synopsis: AES128 using AES-NI when available. description: AES128 with crypto-api instances and a trampoline between Vincent Hanquez's C-based and x86 NI-based AES. Patches welcome to add additional high-performance backends (ARM?) license: BSD3