From bf8824efbc91c3a6267473eac7b22fac320214d1 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Fri, 9 Dec 2016 13:37:49 +0100 Subject: [PATCH 1/4] 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,, From a9dfcedabbcf5afe5e5239151889bae126a9020e Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 10 Dec 2016 21:19:58 +0100 Subject: [PATCH 2/4] Add more explenation and fix naming --- table.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/table.csv b/table.csv index 7bac319..1e5ccdb 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-lenX, , 0xb201-0xb240 -blake2s-lenX, , 0xb241-0xb260 +blake2b-X,X is length in bits, can take values from 8 to 512 in 8 bit increments,0xb201-0xb240 (0xb201 - blake2b-8, 0xb240 - blake2b-512) +blake2s-X,X is length in bits, can take values from 8 to 256 in 8 bit increments,0xb241-0xb260 (0xb241 - blake2s-8, 0xb260 - blake2b-256) reserved for apps, appl specific range, 0x4000-0x40f0 multiaddrs,, From a20aff156284bbcc243fed72c07d7df0c5464afc Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 10 Dec 2016 21:20:46 +0100 Subject: [PATCH 3/4] Fix columns --- table.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/table.csv b/table.csv index 1e5ccdb..6628853 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-X,X is length in bits, can take values from 8 to 512 in 8 bit increments,0xb201-0xb240 (0xb201 - blake2b-8, 0xb240 - blake2b-512) -blake2s-X,X is length in bits, can take values from 8 to 256 in 8 bit increments,0xb241-0xb260 (0xb241 - blake2s-8, 0xb260 - blake2b-256) +blake2b-X,X is length in bits, can take values from 8 to 512 in 8 bit increments,"0xb201-0xb240 (0xb201 - blake2b-8, 0xb240 - blake2b-512)" +blake2s-X,X is length in bits, can take values from 8 to 256 in 8 bit increments,"0xb241-0xb260 (0xb241 - blake2s-8, 0xb260 - blake2b-256)" reserved for apps, appl specific range, 0x4000-0x40f0 multiaddrs,, From db2d536940ba89c210d9dc543c3348d0d4cfbac4 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 10 Dec 2016 21:21:47 +0100 Subject: [PATCH 4/4] Fix columns once again --- table.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/table.csv b/table.csv index 6628853..8bab9a9 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-X,X is length in bits, can take values from 8 to 512 in 8 bit increments,"0xb201-0xb240 (0xb201 - blake2b-8, 0xb240 - blake2b-512)" -blake2s-X,X is length in bits, can take values from 8 to 256 in 8 bit increments,"0xb241-0xb260 (0xb241 - blake2s-8, 0xb260 - blake2b-256)" +blake2b-X,"X is length in bits, can take values from 8 to 512 in 8 bit increments","0xb201-0xb240 (0xb201 - blake2b-8, 0xb240 - blake2b-512)" +blake2s-X,"X is length in bits, can take values from 8 to 256 in 8 bit increments","0xb241-0xb260 (0xb241 - blake2s-8, 0xb260 - blake2b-256)" reserved for apps, appl specific range, 0x4000-0x40f0 multiaddrs,,