microsoft / TSS.MSR

The TPM Software Stack from Microsoft Research
Other
428 stars 161 forks source link

Specify size for RSA key parameters #142

Closed chrisfenner closed 2 years ago

chrisfenner commented 2 years ago

This change addresses #140 and #141 by specifying the sizeWanted for RSA parameters converted from bignum as the correct size for the key (and properly plumbing this parameter into the helper ToBigEndian function).

Tested by running some tests that sporadically failed on net472 due to net472's CSP not handling non-padded RSA parameters.

alex-schwab commented 2 years ago

Thanks for your help!