@@ -34,10 +34,6 @@ func init() {
3434 // by implementations.
3535 RegisterAlgorithm (SHA256 , crypto .SHA256 )
3636 RegisterAlgorithm (SHA512 , crypto .SHA512 )
37- // SHA384 is registered by default but is not part of the OCI image
38- // specification, and its use should be discouraged for reasons other
39- // than backward-compatibility.
40- RegisterAlgorithm (SHA384 , crypto .SHA384 )
4137}
4238
4339// Algorithm identifies and implementation of a digester by an identifier.
@@ -83,9 +79,16 @@ const (
8379
8480 // SHA384 is the SHA-384 ([RFC 6234]) digest algorithm with hex encoding
8581 // (lower case only). Use of the SHA384 digest algorithm is not recommended,
86- // and the [Canonical] algorithm is preferred.
82+ // for reasons other than backward-compatibility, and the [Canonical]
83+ // algorithm is preferred.
84+ //
85+ // SHA384 is not part of the [OCI image specification], and not registered
86+ // by default. Implementers must register it if needed;
87+ //
88+ // RegisterAlgorithm(SHA384, crypto.SHA384)
8789 //
8890 // [RFC 6234]: https://datatracker.ietf.org/doc/html/rfc6234
91+ // [OCI image specification]: https://github.com/opencontainers/image-spec/blob/v1.0.2/descriptor.md#registered-algorithms
8992 SHA384 Algorithm = "sha384" // sha384 with hex encoding (lower case only)
9093
9194 // BLAKE3 is the [BLAKE3 algorithm] with the default 256-bit output size.
0 commit comments