From bf8824efbc91c3a6267473eac7b22fac320214d1 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 9 Dec 2016 13:37:49 +0100 Subject: [PATCH] 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. --- table.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/table.csv b/table.csv index 2a8ee27..7bac319 100644 --- a/table.csv +++ b/table.csv @@ -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,,