github.com/linuxboot/fiano@v1.2.0/pkg/intel/metadata/cbnt/hash.go (about)

     1  // Copyright 2017-2021 the LinuxBoot Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:generate manifestcodegen
     6  
     7  package cbnt
     8  
     9  // HashStructure describes a digest.
    10  type HashStructure struct {
    11  	HashAlg    Algorithm `default:"0x10" json:"hsAlg"`
    12  	HashBuffer []byte    `json:"hsBuffer"`
    13  }
    14  
    15  // HashList describes multiple digests
    16  type HashList struct {
    17  	Size uint16          `rehashValue:"TotalSize()" json:"hlSize"`
    18  	List []HashStructure `json:"hlList"`
    19  }