[Imported from Trac: page TaggedHash, version 2]
parent
ebb6111cab
commit
5ab8df644f
|
@ -1,6 +1,6 @@
|
||||||
Each place a hash function is used within Tahoe, the data to be hashed is first prepended with a distinct "tag", one per purpose.
|
Each place a hash function is used within Tahoe, the data to be hashed is first prepended with a distinct "tag", one per purpose.
|
||||||
|
|
||||||
These tags are encoded as a [NetString](NetString), to insure that they cannot be confused with the data being hashed. For example, the [VerifierId](VerifierId) is computed as the SHA-256 hash of the following string:
|
These tags are encoded as a [netstring](http://cr.yp.to/proto/netstrings.txt), to insure that they cannot be confused with the data being hashed. For example, the [VerifierId](VerifierId) is computed as the SHA-256 hash of the following string:
|
||||||
```
|
```
|
||||||
"23:allmydata_verifierid_v1," + DATA
|
"23:allmydata_verifierid_v1," + DATA
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue