1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

use type FileHashValue

This commit is contained in:
Christoph Klassen 2023-09-08 14:52:48 +02:00
parent dc41aae07f
commit 5a3661e81b

View file

@ -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.