From e7228fa3a4101ace230310aca6fc81ba511116bd Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 26 Jul 2017 01:21:24 +0200 Subject: [PATCH] cosmetic: move some lines --- src/borg/crypto/low_level.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/borg/crypto/low_level.pyx b/src/borg/crypto/low_level.pyx index 96d15b296..6db977800 100644 --- a/src/borg/crypto/low_level.pyx +++ b/src/borg/crypto/low_level.pyx @@ -373,9 +373,9 @@ cdef class AES256_CTR_BASE: if isinstance(iv, int): iv = iv.to_bytes(self.iv_len, byteorder='big') assert isinstance(iv, bytes) and len(iv) == self.iv_len - self.blocks = 0 # how many AES blocks got encrypted with this IV? for i in range(self.iv_len): self.iv[i] = iv[i] + self.blocks = 0 # how many AES blocks got encrypted with this IV? def next_iv(self): # call this after encrypt() to get the next iv (int) for the next encrypt() call @@ -645,9 +645,9 @@ cdef class _AEAD_BASE: if isinstance(iv, int): iv = iv.to_bytes(self.iv_len, byteorder='big') assert isinstance(iv, bytes) and len(iv) == self.iv_len - self.blocks = 0 # number of cipher blocks encrypted with this IV for i in range(self.iv_len): self.iv[i] = iv[i] + self.blocks = 0 # number of cipher blocks encrypted with this IV def next_iv(self): # call this after encrypt() to get the next iv (int) for the next encrypt() call @@ -809,9 +809,9 @@ cdef class AES: if isinstance(iv, int): iv = iv.to_bytes(self.iv_len, byteorder='big') assert isinstance(iv, bytes) and len(iv) == self.iv_len - self.blocks = 0 # number of cipher blocks encrypted with this IV for i in range(self.iv_len): self.iv[i] = iv[i] + self.blocks = 0 # number of cipher blocks encrypted with this IV def next_iv(self): # call this after encrypt() to get the next iv (int) for the next encrypt() call