mirror of
https://github.com/logos-storage/multicodec.git
synced 2026-01-02 13:33:10 +00:00
Add blake range codes
Blake2s and Blake2b have different initial vectors states for different lengths, this means that for each chosen output length it looks like completely different hash function. This proposal allocated 64 values for Blake2b and 32 values for Blake2s as those are the ranges the outputs can be chosen from. The codes will require 3 bytes to write down as varints.
This commit is contained in:
parent
d6e0ec1b94
commit
bf8824efbc
@ -46,8 +46,8 @@ keccak-256, , 0x1B
|
||||
keccak-384, , 0x1C
|
||||
keccak-512, , 0x1D
|
||||
,, Note: keccak has variable output length. The number specifies the core length
|
||||
blake2b, , 0x40
|
||||
blake2s, , 0x41
|
||||
blake2b-lenX, , 0xb201-0xb240
|
||||
blake2s-lenX, , 0xb241-0xb260
|
||||
reserved for apps, appl specific range, 0x4000-0x40f0
|
||||
|
||||
multiaddrs,,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user