hsskey

package
v3.0.0-...-66753ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package hsskey provides functionality for generating a key for unlocking drives based on the following procedure:

  1. Via BMC, read a 32-byte secret seed known as the Host Secret Seed (HSS) using the OpenBMC IPMI blob transfer protocol
  2. Compute a password as follows: We get the deterministically computed 32-byte HDKF-SHA256 using: - salt: "SKM PROD_V2 ACCESS" (default) - hss: 32-byte HSS - device identity: strings formed by concatenating the assembly serial number, the _ character, and the assembly part number.

Index

Constants

View Source
const (
	DefaultPasswordSalt = "SKM PROD_V2 ACCESS"
)

Variables

This section is empty.

Functions

func GenPassword

func GenPassword(hss []byte, salt string, identifiers ...string) ([]byte, error)

GenPassword computes the password deterministically as the 32-byte HDKF-SHA256 of the HSS plus the device identity.

func GetAllHss

func GetAllHss(verbose bool, verboseDangerous bool) ([][]uint8, error)

GetAllHss reads all host secret seeds over IPMI.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL