[gnutls-devel] GnuTLS | Port openconnect TPM2 code (!1460)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Sep 24 14:38:10 CEST 2021




David Woodhouse commented:


We're using `Esys_RSA_Decrypt` for a signature. Which is mathematically correct, of course, but is it the right thing to do? If we have signature-only keys, might the TPM refuse to let us *decrypt* with them, having trusted us to do the padding for it? If we were to actually ask the TPM to *sign* for us, would I then not have needed to implement all the PSS padding in the first place? :)

I suspect we might need both. Using Esys_RSA_Decrypt() will let us use TLSv1.3 with unrestricted RSA keys even when the TPM knows nothing about PSS, but maybe we should fall back to asking for a signature if the key is restricted?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1460#note_686438493
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20210924/69edce25/attachment.html>


More information about the Gnutls-devel mailing list