borgbackup/borg

unusual blake2b usage, adopt blake3?

Open

#8.867 geöffnet am 21. Mai 2025

Auf GitHub ansehen
 (10 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Python (10.086 Stars) (732 Forks)batch import
breakingcmd: transferhelp wantedsecurity

Beschreibung

This is from master branch (same in 1.4-maint):

def blake2b_256(key, data):
    return hashlib.blake2b(key+data, digest_size=32).digest()

It is one of the chunkid hashes borg uses.

The usage there is unusual, the python docs rather suggest:

def blake2b_256(key, data):
    return hashlib.blake2b(data, key=key, digest_size=32).digest()

Contributor Guide