Commit 2ae0352b authored by Richard Levitte's avatar Richard Levitte
Browse files

Oops, I forgot to replace 'counter' with 'ivec' when used...

parent 94805c84
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -153,8 +153,8 @@ void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,

	while (l--) {
		if (n == 0) {
			AES_encrypt(counter, ecount_buf, key);
			AES_ctr128_inc(counter);
			AES_encrypt(ivec, ecount_buf, key);
 			AES_ctr128_inc(ivec);
		}
		*(out++) = *(in++) ^ ecount_buf[n];
		n = (n+1) % AES_BLOCK_SIZE;