Documentation
¶
Overview ¶
Package rfc9530 provides utilities for working with RFC 9530. It includes functions for parsing the Repr-Digest header as defined in RFC 9530. The Repr-Digest header is used to convey the digest values of representations in a format that allows multiple algorithms to be specified.
Index ¶
Constants ¶
const ReprDigestHeader = "Repr-Digest"
Variables ¶
This section is empty.
Functions ¶
func AsHeaderValue ¶
func ChooseDigest ¶
ChooseDigest selects a digest from the provided map of digests based on the specified algorithms with an indication of whether the returned digest matches one of the requested algorithms. It checks the provided algorithms in order and returns the first matching algorithm's digest if found. If no algorithms match, it returns the first available digest in the map based on the alphabetical order of the keys and a boolean indicating that no requested algorithm was matched. The returned value is in the format "algo=base64Digest" suitable for the Repr-Digest header.
func ParseAlgoDigest ¶
Types ¶
This section is empty.