Should support change of hash functions #1213
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1213
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It should be relatively easy to change e.g. SHA-256d to other hash functions.
When doing the following in util/hashutil.py, several tests break:
from pycryptopp.hash.sha256 import SHA256
from sha3 import BlueMidnightWish as SHA256
BlueMidnightWish is one of the 14 remaining candidates of the NIST SHA-3 competition, and the implementation tested has an output of 256 bits.
The tests probably contains fixtures that have been created using SHA-256, but none the less, attached is the output from the tests.
That simple import trick is enough to get immutable file upload to work, but at least mutable files and the webgui fail.
Attachment output.txt (33220 bytes) added
test results (dies with terminate called after throwing an instance of 'CryptoPP::BERDecodeErr' what(): BER decode error afterwards)
Attachment incident-2010-09-28-133604-c6mrjji.flog.bz2 (5963 bytes) added
incident-log after creating the default alias and trying to create a directory
Console output:
tahoe mkdir test
Error during HTTP request: 500 Internal Server Error
"Traceback (most recent call last):\x0aFailure: allmydata.mutable.common.UncoordinatedWriteError: \x0a"
Testing is done with a single client (shares happy/needed/total set to 1) and introducer.
Some tests involve loading shares generated by previous versions, which should break with this import hack alone.
Replying to davidsarah:
Agreed—those ones should go red with this hack alone.
To make a version of this patch which does not turn those tests red (and is thus one step closer to being accepted into trunk), define a new type of capability which will use BMW-256 instead of SHA-256. Ticket #1164 describes how to do that in order to make a capability that uses XSalsa20+AES-128 instead of using AES-256. The same sort of patch would serve to make a type of capability which uses BMW-256 instead of SHA-256.