github.com/linuxboot/fiano@v1.2.0/pkg/intel/metadata/cbnt/svn.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  package cbnt
     6  
     7  // SVN represents Security Version Number.
     8  type SVN uint8
     9  
    10  // SVN returns the Security Version Number of an SVN field
    11  func (svn SVN) SVN() uint8 {
    12  	return uint8(svn) & 0x0f
    13  }