func getCryptoProcessor()

in sks_linux.go [27:38]


func getCryptoProcessor() (linux.Cryptoprocessor, error) {
	tpm, err := linux.GetCryptoprocessor("/dev/tpmrm0")
	if err != nil {
		return nil, err
	}
	err = tpm.Initialize()
	if err != nil {
		return nil, err
	}

	return tpm, nil
}