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:
Thomas Waldmann 2022-03-17 20:40:36 +01:00
parent 78f041440c
commit d3f069cb3b
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class UNENCRYPTED:
cdef class AES256_CTR_BASE: 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 EVP_CIPHER_CTX *ctx
cdef unsigned char *enc_key cdef unsigned char *enc_key
@ -423,6 +423,7 @@ ctypedef const EVP_CIPHER * (* CIPHER)()
cdef class _AEAD_BASE: cdef class _AEAD_BASE:
# new crypto used in borg >= 1.3
# Layout: HEADER + MAC 16 + IV 12 + CT # Layout: HEADER + MAC 16 + IV 12 + CT
cdef CIPHER cipher cdef CIPHER cipher