mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 09:59:19 -04:00
generalize intermediate classes' init
This commit is contained in:
parent
11349d1699
commit
fb85d6abdc
1 changed files with 4 additions and 4 deletions
|
|
@ -508,15 +508,15 @@ cdef class _AEAD_BASE:
|
|||
|
||||
|
||||
cdef class _AES_BASE(_AEAD_BASE):
|
||||
def __init__(self, mac_key, enc_key, iv=None):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.cipher_blk_len = 16
|
||||
super().__init__(mac_key, enc_key, iv=iv)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
cdef class _CHACHA_BASE(_AEAD_BASE):
|
||||
def __init__(self, mac_key, enc_key, iv=None):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.cipher_blk_len = 64
|
||||
super().__init__(mac_key, enc_key, iv=iv)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
|
||||
cdef class AES256_GCM(_AES_BASE):
|
||||
|
|
|
|||
Loading…
Reference in a new issue