class CycloneDX::Hash

Included Modules

Defined in:

cyclonedx/models.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(algorithm : String, content : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def algorithm : String #

[View source]
def content : String #

[View source]
def to_xml(xml : XML::Builder) #

[View source]