lib

package
v0.0.0-...-40dd295 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize           = 32             // 256-bit key
	AlignmentBoundary = 8              // assume malloc respects 64-bit word size?
	KeyringPath       = "core/keyring" // logical path where the keyring is stored
)

Variables

This section is empty.

Functions

func CombineShares

func CombineShares(shares []string) (result string, err error)

func Decrypt

func Decrypt(path string, key []byte, plaintext []byte) ([]byte, error)

func DecryptFile

func DecryptFile(keyRingFile string, vaultPath string, valueFile string) ([]byte, error)

func FindMasterKeyInCore

func FindMasterKeyInCore(corePath string, keyRingPath string) ([]byte, error)

func FindMasterKeyInRegion

func FindMasterKeyInRegion(coreMap io.ReaderAt, region Region, keyRing []byte) ([]byte, error)

func FindMasterKeyLive

func FindMasterKeyLive(pidStr string, keyRingPath string) (keyring []byte, err error)

func SecretShares

func SecretShares(secret string, numShares string) (shares []string, err error)

Types

type Region

type Region struct {
	Start  uint64
	Length uint64
}

func GetRegions

func GetRegions(corePath string) (result []Region, err error)

get the RW regions in the core file

func GetRegionsProc

func GetRegionsProc(pid int) (result []Region, err error)

Jump to

Keyboard shortcuts

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