borgbackup/borg

unusual blake2b usage, adopt blake3?

クローズ

#8,867 opened on 2025/05/21

 (10 件のコメント) (0 件のリアクション) (1 人の担当者)Python (732 件のフォーク)batch import
breakingcmd: transferhelp wantedsecurity

Repository metrics

Stars
 (10,086 個のスター)
PR merge metrics
 (平均マージ 5d 12h) (30d で 91 merged PRs)

説明

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

コントリビューターガイド