github.com/linuxboot/fiano@v1.2.0/pkg/intel/metadata/bg/bgkey/manifest_nocodegen.go (about)

     1  // Copyright 2017-2023 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  package bgkey
     6  
     7  import (
     8  	"fmt"
     9  
    10  	"github.com/linuxboot/fiano/pkg/intel/metadata/common/pretty"
    11  )
    12  
    13  // Print prints the Key Manifest.
    14  func (m *Manifest) Print() {
    15  	if m.KeyAndSignature.Signature.DataTotalSize() < 1 {
    16  		fmt.Printf("%v\n", m.PrettyString(1, true, pretty.OptionOmitKeySignature(true)))
    17  		fmt.Printf("  --KeyAndSignature--\n\tKey Manifest not signed!\n\n")
    18  	} else {
    19  		fmt.Printf("%v\n", m.PrettyString(1, true, pretty.OptionOmitKeySignature(false)))
    20  	}
    21  }