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