google/go-tpm

Only signing schemes are settable on TPMS_RSA_PARMS

chrisfenner opened this issue · 0 comments

go-tpm/tpm2/structures.go

Lines 204 to 210 in d331077

type RSAParams struct {
Symmetric *SymScheme
Sign *SigScheme
KeyBits uint16
ExponentRaw uint32
ModulusRaw tpmutil.U16Bytes
}

Instead of Sign *SigScheme, we should have something that reflects TPMT_RSA_SCHEME (which can be a signing or decryption scheme).