mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
use type FileHashValue
This commit is contained in:
parent
dc41aae07f
commit
5a3661e81b
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ var fileHashValuePattern = patternUnmarshal(`^[0-9a-fA-F]{32,}$`)
|
||||||
// Values for 'algorithm' are derived from the currently supported digests OpenSSL. Leading dashes were removed.
|
// Values for 'algorithm' are derived from the currently supported digests OpenSSL. Leading dashes were removed.
|
||||||
type FileHash struct {
|
type FileHash struct {
|
||||||
Algorithm string `json:"algorithm"` // required, default: sha256
|
Algorithm string `json:"algorithm"` // required, default: sha256
|
||||||
Value string `json:"value"` // required
|
Value FileHashValue `json:"value"` // required
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hashes is a list of hashes.
|
// Hashes is a list of hashes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue