mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 17:27:31 +00:00
crypto: fix/update borg version comments
new AEAD crypto can be used with borg >= 1.3. old crypto is used by attic and borg < 1.3.
This commit is contained in:
parent
78f041440c
commit
d3f069cb3b
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,7 @@ class UNENCRYPTED:
|
|||
|
||||
|
||||
cdef class AES256_CTR_BASE:
|
||||
# Layout: HEADER + MAC 32 + IV 8 + CT (same as attic / borg < 1.2 IF HEADER = TYPE_BYTE, no AAD)
|
||||
# Layout: HEADER + MAC 32 + IV 8 + CT (same as attic / borg < 1.3 IF HEADER = TYPE_BYTE, no AAD)
|
||||
|
||||
cdef EVP_CIPHER_CTX *ctx
|
||||
cdef unsigned char *enc_key
|
||||
|
@ -423,6 +423,7 @@ ctypedef const EVP_CIPHER * (* CIPHER)()
|
|||
|
||||
|
||||
cdef class _AEAD_BASE:
|
||||
# new crypto used in borg >= 1.3
|
||||
# Layout: HEADER + MAC 16 + IV 12 + CT
|
||||
|
||||
cdef CIPHER cipher
|
||||
|
|
Loading…
Reference in a new issue