cipher-aes 0.1.7 → 0.1.8
raw patch · 2 files changed
+5/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- cbits/gf.c +4/−4
- cipher-aes.cabal +1/−1
cbits/gf.c view
@@ -64,9 +64,9 @@ /* inplace GFMUL for xts mode */ void gf_mulx(block128 *a) {- const uint64_t gf_mask = 0x8000000000000000ULL;- uint64_t r = ((a->q[1] & gf_mask) ? 0x87 : 0);- a->q[1] = (a->q[1] << 1) | (a->q[0] & gf_mask ? 1 : 0);- a->q[0] = (a->q[0] << 1) ^ r;+ const uint64_t gf_mask = cpu_to_le64(0x8000000000000000ULL);+ uint64_t r = ((a->q[1] & gf_mask) ? cpu_to_le64(0x87) : 0);+ a->q[1] = cpu_to_le64((le64_to_cpu(a->q[1]) << 1) | (a->q[0] & gf_mask ? 1 : 0));+ a->q[0] = cpu_to_le64(le64_to_cpu(a->q[0]) << 1) ^ r; }
cipher-aes.cabal view
@@ -1,5 +1,5 @@ Name: cipher-aes-Version: 0.1.7+Version: 0.1.8 Description: Fast AES cipher implementation with advanced mode of operations. .