<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<p dir="auto">In <code>gnutls_pkcs11_privkey_import_url()</code> we only enable RSA-PSS functionality to the key if the <code>CKM_RSA_PKCS_PSS</code> mechanism is available to the token. However, if the specific key is not marked for use with digital signatures (<code>CKA_SIGN</code> set), then we may still end-up using it which will later fail. We should test whether <code>CKA_SIGN</code> is set prior to enabling such keys for PSS.</p>
<p dir="auto">Furthermore we should make <code>CKA_SIGN/VERIFY</code> and <code>CKA_ENCRYPT/DECRYPT</code> visible via p11tool by amending <code>gnutls_pkcs11_obj_flags_get_str()</code>.</p>
<p dir="auto">[reported originally at: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1663058" rel="nofollow noreferrer noopener" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1663058</a>]</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/667">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/6e4f50e2529060e10148c6fc65ad0c1d/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/667"}}</script>
</p>
</div>
</body>
</html>