From ef9d50ca5c0e4f439e20df64de7780b4998fc10a Mon Sep 17 00:00:00 2001 From: Thomas Fossati Date: Wed, 8 Feb 2023 16:50:59 +0000 Subject: [PATCH] `base64-url-text` does not include padding Fix #14 Signed-off-by: Thomas Fossati --- cddl/base64-url-text.cddl | 2 +- draft-fv-rats-ear.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cddl/base64-url-text.cddl b/cddl/base64-url-text.cddl index aa92f34..1725eea 100644 --- a/cddl/base64-url-text.cddl +++ b/cddl/base64-url-text.cddl @@ -1 +1 @@ -base64-url-text = tstr .regexp "[A-Za-z0-9_=-]+" +base64-url-text = tstr .regexp "[A-Za-z0-9_-]+" diff --git a/draft-fv-rats-ear.md b/draft-fv-rats-ear.md index c00113a..e9bbede 100644 --- a/draft-fv-rats-ear.md +++ b/draft-fv-rats-ear.md @@ -615,8 +615,10 @@ in an object with only optional fields. {:vspace} `base64-url-text` -: string type representing a Base64 URL-encoded string (see {{Section 5 of -!RFC4648}}). +: Base64 encoding using the URL- and filename-safe character set defined in +{{Section 5 of !RFC4648}}, with all trailing '=' characters omitted (as +permitted by Section 3.2) and without the inclusion of any line breaks, +whitespace, or other additional characters. ~~~cddl {::include cddl/base64-url-text.cddl}