Tahoe: Avoid verifying hash after download, since tahoe does sufficient verification itself
See my comment in the next commit for some details about why Verified needs a hash with preimage resistance. As far as tahoe goes, it's fully cryptographically secure. I think that bup could also return Verified. However, the Retriever interface does not currenly support that.
This commit is contained in:
parent
cbe84b62b9
commit
fa3d71d924
4 changed files with 11 additions and 2 deletions
|
@ -197,7 +197,9 @@ data Verification
|
|||
-- ok, so if verification is disabled, don't verify it
|
||||
| Verified
|
||||
-- ^ Content was verified during transfer, so don't verify it
|
||||
-- again.
|
||||
-- again. The verification does not need to use a
|
||||
-- cryptographically secure hash, but the hash does need to
|
||||
-- have preimage resistance.
|
||||
| MustVerify
|
||||
-- ^ Content likely to have been altered during transfer,
|
||||
-- verify even if verification is normally disabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue