borgbackup/borg

unusual blake2b usage, adopt blake3?

Chiusa

#8867 aperta il 21 mag 2025

 (10 commenti) (0 reazioni) (1 assegnatario)Python (732 fork)batch import
breakingcmd: transferhelp wantedsecurity

Metriche repository

Star
 (10.086 stelle)
Metriche merge PR
 (Merge medio 5g 12h) (91 PR mergiate in 30 g)

Descrizione

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()

Guida contributor