tpm2: Allow 4096 bit RSA key sizes once enabled by RSA_4096

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2024-01-22 15:13:16 -05:00 committed by Stefan Berger
parent d0f5b67ea0
commit 87691f7a71

View File

@ -3661,6 +3661,9 @@ TPMI_RSA_KEY_BITS_Unmarshal(TPMI_RSA_KEY_BITS *target, BYTE **buffer, INT32 *siz
case 1024:
case 2048:
case 3072:
#if RSA_4096 // libtpms added begin
case 4096:
#endif // libtpms added end
break;
default:
rc = TPM_RC_VALUE;