You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add blake3 as a registered/supported hash algorithm
Motivations for this PR:
1. Blake3 is a high performance hash and there is growing community
interest
2. Blake3 is variable output but mandate 256-bit output
Signed-off-by: Ramkumar Chinchani <[email protected]>
Please see [Registered Algorithms](#registered-algorithms) for a list of registered algorithms.
100
101
@@ -142,6 +143,7 @@ The following algorithm identifiers are currently defined by this specification:
142
143
|----------------------|---------------------|
143
144
|`sha256`|[SHA-256](#sha-256)|
144
145
|`sha512`|[SHA-512](#sha-512)|
146
+
|`blake3`|[BLAKE3](#blake3)|
145
147
146
148
If a useful algorithm is not included in the above table, it SHOULD be submitted to this specification for registration.
147
149
@@ -161,6 +163,16 @@ Implementations MAY implement SHA-512 digest verification for use in descriptors
161
163
When the _algorithm identifier_ is `sha512`, the _encoded_ portion MUST match `/[a-f0-9]{128}/`.
162
164
Note that `[A-F]` MUST NOT be used here.
163
165
166
+
#### BLAKE3
167
+
168
+
[BLAKE3][blake3] is a high performance, highly parallelizable, collision-resistant hash function which [is more performant][blake3-vs-sha2] than
169
+
[SHA-256][rfc4634-s4.1].
170
+
The hash output length MUST be 256 bits.
171
+
Implementations MAY implement BLAKE3 digest verification for use in descriptors.
172
+
173
+
When the _algorithm identifier_ is `blake3`, the _encoded_ portion MUST match `/[a-f0-9]{64}/`.
174
+
Note that `[A-F]` MUST NOT be used here.
175
+
164
176
## Embedded Content
165
177
166
178
In many contexts, such as when downloading content over a network, resolving a descriptor to its content has a measurable fixed "roundtrip" latency cost.
@@ -220,3 +232,5 @@ In the following example, the descriptor indicates the type of artifact it is re
0 commit comments