From 8e8fa5dd8bf94ea7e366a12c8fa797a161db5d79 Mon Sep 17 00:00:00 2001 From: Fabian Freyer Date: Mon, 22 Apr 2019 09:14:03 +0200 Subject: [PATCH] Correct grammar for digest algorithm portion The current grammar specifies that the characters [A-Fa-f0-9_+.-] are valid in the "algorithm" portion of a digest. This contradicts the specification stating that "compliant implementations SHOULD use sha256", as "sha256" does not match the above rule. This commit fixes this issue by additionally allowing characters g-zG-Z in the "algorithm" portion. Signed-off-by: Fabian Freyer --- spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.md b/spec.md index 7946c847..5ff74edf 100644 --- a/spec.md +++ b/spec.md @@ -234,7 +234,7 @@ We define a _digest_ string to match the following grammar: ```EBNF digest := algorithm ":" hex -algorithm := /[A-Fa-f0-9_+.-]+/ +algorithm := /[A-Za-z0-9_+.-]+/ hex := /[A-Fa-f0-9]+/ ```