Changes between Version 1 and Version 2 of TaggedHash


Ignore:
Timestamp:
2007-05-04T14:18:52Z (17 years ago)
Author:
zooko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TaggedHash

    v1 v2  
    11Each place a hash function is used within Tahoe, the data to be hashed is first prepended with a distinct "tag", one per purpose.
    22
    3 These tags are encoded as a NetString, to insure that they cannot be confused with the data being hashed. For example, the VerifierId is computed as the SHA-256 hash of the following string:
     3These tags are encoded as a [http://cr.yp.to/proto/netstrings.txt netstring], to insure that they cannot be confused with the data being hashed. For example, the VerifierId is computed as the SHA-256 hash of the following string:
    44{{{
    55    "23:allmydata_verifierid_v1," + DATA