1
0
Fork 0
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:
Christoph Klassen 2023-09-08 14:52:48 +02:00
parent dc41aae07f
commit 5a3661e81b

View file

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