From 36b1863c44db8f5217c016a2b19b232f7863d16b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 26 Jun 2016 20:45:22 +0200 Subject: [PATCH] use long long for AES block counter, fixes #1206 --- borg/crypto.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/crypto.pyx b/borg/crypto.pyx index 556f0fbce..be692742c 100644 --- a/borg/crypto.pyx +++ b/borg/crypto.pyx @@ -86,7 +86,7 @@ cdef class AES: cdef EVP_CIPHER_CTX *ctx cdef int is_encrypt cdef unsigned char iv_orig[16] - cdef int blocks + cdef long long blocks def __cinit__(self, is_encrypt, key, iv=None): self.ctx = EVP_CIPHER_CTX_new()