Slot in Supply-chain Levels for Software Artifacts (SLSA)
algorithm
The algorithm's name, as the key the attestation's JSON uses, such as svn_revision_id.
URI: spdx:algorithm
Applicable Classes#
| Name | Description | Modifies Slot |
|---|
| InTotoAdditionalDigest | One digest under an algorithm that InTotoDigestSet does not name, such as an … | no |
Properties#
Type and Range#
Cardinality and Requirements#
Slot Characteristics#
Value Constraints#
| Property | Value |
|---|
| Regex Pattern | ^[a-z][A-Za-z0-9_.:-]*$ |
YAML
Expressions & Logic
#### None OfValue must not satisfy any of:
- AnonymousSlotExpression({
’equals_string_in’: [‘sha256’, ‘sha224’, ‘sha384’, ‘sha512’, ‘sha512_224’, ‘sha512_256’, ‘sha3_224’,
‘sha3_256’, ‘sha3_384’, ‘sha3_512’, ‘shake128’, ‘shake256’, ‘blake2b’,
‘blake2s’, ‘ripemd160’, ‘sm3’, ‘gost’, ‘sha1’, ‘md5’, ‘dirHash’, ‘gitCommit’,
‘gitTree’, ‘gitBlob’, ‘gitTag’, ‘dir_hash’, ‘git_commit’, ‘git_tree’,
‘git_blob’, ‘git_tag’]
})
- An algorithm that InTotoDigestSet names, by its JSON key or by its field name, goes in that field instead.
- A name starts with a lowercase letter, as the framework’s own names do, so that SHA256 is not taken for sha256, and it may hold a colon, as go-witness’s gitoid:sha256 does. The framework itself sets no rule for other names.
Schema Source#
Mappings#
| Mapping Type | Mapped Value |
|---|
| self | spdx:algorithm |
| native | slsa:algorithm |
LinkML Source#
YAML
name: algorithm
description: The algorithm's name, as the key the attestation's JSON uses, such as
svn_revision_id.
comments:
- An algorithm that InTotoDigestSet names, by its JSON key or by its field name, goes
in that field instead.
- A name starts with a lowercase letter, as the framework's own names do, so that
SHA256 is not taken for sha256, and it may hold a colon, as go-witness's gitoid:sha256
does. The framework itself sets no rule for other names.
from_schema: https://w3id.org/lmodel/slsa
rank: 1000
slot_uri: spdx:algorithm
owner: InTotoAdditionalDigest
domain_of:
- InTotoAdditionalDigest
range: string
required: true
pattern: ^[a-z][A-Za-z0-9_.:-]*$
none_of:
- equals_string_in:
- sha256
- sha224
- sha384
- sha512
- sha512_224
- sha512_256
- sha3_224
- sha3_256
- sha3_384
- sha3_512
- shake128
- shake256
- blake2b
- blake2s
- ripemd160
- sm3
- gost
- sha1
- md5
- dirHash
- gitCommit
- gitTree
- gitBlob
- gitTag
- dir_hash
- git_commit
- git_tree
- git_blob
- git_tag