Skip to content

Commit 4aa74ac

Browse files
authored
Merge pull request #292 from wking/lowecase-hex
descriptor: Require lowercase hex
2 parents f964286 + 660d130 commit 4aa74ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

descriptor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ It uniquely identifies content by taking a [collision-resistant hash](https://en
5454
If the identifier can be communicated in a secure manner, one can retrieve the content from an insecure source, calculate the digest independently, and be certain that the correct content was obtained.
5555

5656
The value of the digest property, the _digest string_, is a serialized hash result, consisting of an _algorithm_ portion and a _hex_ portion.
57-
The algorithm identifies the methodology used to calculate the digest; the hex portion is the hex-encoded result of the hash.
57+
The algorithm identifies the methodology used to calculate the digest; the hex portion is the lowercase hex-encoded result of the hash.
5858

59-
The digest string matches the following grammar:
59+
The digest string MUST match the following grammar:
6060

6161
```
6262
digest := algorithm ":" hex
6363
algorithm := /[a-z0-9_+.-]+/
64-
hex := /[A-Fa-f0-9]+/
64+
hex := /[a-f0-9]+/
6565
```
6666

6767
Some example digest strings include the following:

schema/defs-image.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"digest": {
1010
"description": "the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'",
1111
"type": "string",
12-
"pattern": "^[a-z0-9_+.-]+:[a-fA-F0-9]+$"
12+
"pattern": "^[a-z0-9_+.-]+:[a-f0-9]+$"
1313
},
1414
"manifestDescriptor": {
1515
"id": "https://opencontainers.org/schema/image/manifestDescriptor",

0 commit comments

Comments
 (0)