class

CycloneDX::Hash

Inherits JSON::Serializable / Reference / Object

Constants

VALID_ALGORITHMS = ["MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512", "SHA3-256", "SHA3-384", "SHA3-512", "BLAKE2b-256", "BLAKE2b-384", "BLAKE2b-512", "BLAKE3", "Streebog-256", "Streebog-512"]

Valid hash algorithm enum values per the CycloneDX schema (hashAlg).

This is the union across all supported spec versions. Values newer than a BOM's declared specVersion are gated on serialization; see VersionGate::HASH_ALG_VERSIONS.

Constructors

new(algorithm : String, content : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

algorithm
Source
content
Source
to_xml(xml : XML::Builder)
Source