<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">
<p class="details" style="font-style: italic; color: #626168;">
Issue created by <a href="https://gitlab.com/toabctl">Thomas Bechtold</a>: <a href="https://gitlab.com/gnutls/gnutls/-/work_items/1891">#1891</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<h2 id="user-content-description-of-the-feature" dir="auto" style="margin-top: 0px; margin-bottom: 10px;" align="initial">Description of the feature:<a href="#description-of-the-feature" aria-label="Link to heading 'Description of the feature:'" data-heading-content="Description of the feature:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">GnuTLS supports runtime backend override for cipher, MAC, digest, RNG, and PK via the <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0px; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: keep-all; padding: 0.125rem 0.25rem;'>gnutls_crypto_*_register</code> family. It does not for KDF (HKDF/PBKDF2), PRF (TLS 1.2),
and TLS 1.3 HKDF-Expand-Label — there are no registration hooks for these, and the in-tree HKDF/PRF implementations call Nettle's HMAC functions directly rather than
going through <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: keep-all; padding: 0.125rem 0.25rem;'>_gnutls_mac_backend()</code>, so registering a MAC override does not affect them.</p>
<p dir="auto" style="color: #3a383f; margin: 0px 0px 1rem;" align="initial">Proposal: add <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0px; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: keep-all; padding: 0.125rem 0.25rem;'>gnutls_crypto_{kdf,prf,tls13_hkdf}_register</code> mirroring the existing pattern, plus one public <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: keep-all; padding: 0.125rem 0.25rem;'>gnutls_load_crypto_provider(path)</code> for runtime provider loading.
All-additive ABI (no removals, no exported-signature changes, no SONAME bump). Off-by-default — caller must invoke explicitly. Provider callbacks may return <code style='font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: keep-all; padding: 0.125rem 0.25rem;'>GNUTLS_E_NEED_FALLBACK</code> to delegate to the in-tree backend, matching the existing PK trampoline fallback pattern.</p>
<h2 id="user-content-applications-that-this-feature-may-be-relevant-to" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Applications that this feature may be relevant to:<a href="#applications-that-this-feature-may-be-relevant-to" aria-label="Link to heading 'Applications that this feature may be relevant to:'" data-heading-content="Applications that this feature may be relevant to:" class="anchor" style="margin-top: 0px;"></a>
</h2>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0px 0px 1rem; padding: 0;">
<li style="margin-top: 0px; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">FIPS-validated GnuTLS backed by OpenSSL's FIPS module — no distribution ships this today. Would let consumers reuse existing OpenSSL FIPS validation instead of revalidating GnuTLS per-distro.</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">Post-quantum vendor backends — generalizes leancrypto integration (MR <a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1925" title="leancrypto: support leancrypto for post-quantum algorithms" class="gfm gfm-merge_request" data-original="!1925" data-link="false" data-link-reference="false" data-merge-request="356431495" data-project="179611" data-project-path="gnutls/gnutls" data-iid="1925" data-container="body" data-placement="top" data-reference-type="merge_request" style="margin-top: 0px;">!1925 (merged)</a>) from static link to runtime load.</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">HSM symmetric crypto offload (related to <a href="https://gitlab.com/gnutls/gnutls/-/work_items/367" title="Support of the symmetric cryptography by PKCS#11 provider to delegate all crypto operations to an HSM" class="gfm gfm-issue" data-original="#367" data-link="false" data-link-reference="false" data-issue="8787429" data-project="179611" data-iid="367" data-namespace-path="gnutls/gnutls" data-project-path="gnutls/gnutls" data-issue-type="issue" data-container="body" data-placement="top" data-reference-type="issue" style="margin-top: 0px;">#367</a>) — generalizes the PKCS#11 in-tree dispatch.</li>
</ul>
<h2 id="user-content-is-this-feature-implemented-in-other-libraries-and-which" dir="auto" style="margin-top: 20px; margin-bottom: 10px;" align="initial">Is this feature implemented in other libraries (and which)<a href="#is-this-feature-implemented-in-other-libraries-and-which" aria-label="Link to heading 'Is this feature implemented in other libraries (and which)'" data-heading-content="Is this feature implemented in other libraries (and which)" class="anchor" style="margin-top: 0px;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0px;" align="initial">Yes — wolfSSL's gnutls-wolfssl (<a href="https://github.com/wolfssl/gnutls-wolfssl" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0px;">https://github.com/wolfssl/gnutls-wolfssl</a>) does exactly this for wolfCrypt. They maintain a forked GnuTLS with the same four added symbols and the same call-site dispatch changes (~2300 lines), installed to /opt/gnutls to avoid colliding with system GnuTLS. Without these hooks upstream, every external-backend deployment ends up forking libgnutls. Related: <a href="https://gitlab.com/gnutls/gnutls/-/work_items/367" title="Support of the symmetric cryptography by PKCS#11 provider to delegate all crypto operations to an HSM" class="gfm gfm-issue" data-original="#367" data-link="false" data-link-reference="false" data-issue="8787429" data-project="179611" data-iid="367" data-namespace-path="gnutls/gnutls" data-project-path="gnutls/gnutls" data-issue-type="issue" data-container="body" data-placement="top" data-reference-type="issue">#367</a> (PKCS#11/HSM), <a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1925" title="leancrypto: support leancrypto for post-quantum algorithms" class="gfm gfm-merge_request" data-original="!1925" data-link="false" data-link-reference="false" data-merge-request="356431495" data-project="179611" data-project-path="gnutls/gnutls" data-iid="1925" data-container="body" data-placement="top" data-reference-type="merge_request">!1925 (merged)</a> (leancrypto).</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/work_items/1891">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/4-8h0buf7bbriwmlovqoag1fw76-a84t7/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.com/gnutls/gnutls/-/work_items/1891 at 1779479736
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Work item","url":"https://gitlab.com/gnutls/gnutls/-/work_items/1891"}}</script>
</p>
</div>
</body>
</html>