<!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=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1205">#1205</a>:
</p>
<div></div>
<p dir="auto">When configured with <code>--disable-hardware-acceleration</code>, the test shows several assertion failures inside nettle functions:</p>
<pre class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true"><code><span id="LC1" class="line" lang="console"><span class="go">trying aes128-gcm</span></span>
<span id="LC2" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:328: nettle_gcm_update: Assertion `ctx-></span>auth_size % GCM_BLOCK_SIZE <span class="o">==</span> 0<span class="s1">' failed.</span></span>
<span id="LC3" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:358: nettle_gcm_encrypt: Assertion `ctx-></span><span class="s1">data_size % GCM_BLOCK_SIZE == 0'</span> failed.</span>
<span id="LC4" class="line" lang="console"><span class="go">trying aes192-gcm</span></span>
<span id="LC5" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:328: nettle_gcm_update: Assertion `ctx-></span>auth_size % GCM_BLOCK_SIZE <span class="o">==</span> 0<span class="s1">' failed.</span></span>
<span id="LC6" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:358: nettle_gcm_encrypt: Assertion `ctx-></span><span class="s1">data_size % GCM_BLOCK_SIZE == 0'</span> failed.</span>
<span id="LC7" class="line" lang="console"><span class="go">trying aes256-gcm</span></span>
<span id="LC8" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:328: nettle_gcm_update: Assertion `ctx-></span>auth_size % GCM_BLOCK_SIZE <span class="o">==</span> 0<span class="s1">' failed.</span></span>
<span id="LC9" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:358: nettle_gcm_encrypt: Assertion `ctx-></span><span class="s1">data_size % GCM_BLOCK_SIZE == 0'</span> failed.</span>
<span id="LC10" class="line" lang="console"><span class="go">trying aes128-cbc</span></span>
<span id="LC11" class="line" lang="console"><span class="go">cipher-api-test: cbc.c:53: nettle_cbc_encrypt: Assertion `!(length % block_size)' failed.</span></span>
<span id="LC12" class="line" lang="console"><span class="go">trying aes192-cbc</span></span>
<span id="LC13" class="line" lang="console"><span class="go">cipher-api-test: cbc.c:53: nettle_cbc_encrypt: Assertion `!(length % block_size)' failed.</span></span>
<span id="LC14" class="line" lang="console"><span class="go">trying aes256-cbc</span></span>
<span id="LC15" class="line" lang="console"><span class="go">cipher-api-test: cbc.c:53: nettle_cbc_encrypt: Assertion `!(length % block_size)' failed.</span></span>
<span id="LC16" class="line" lang="console"><span class="go">trying 3des-cbc</span></span>
<span id="LC17" class="line" lang="console"><span class="go">cipher-api-test: cbc.c:53: nettle_cbc_encrypt: Assertion `!(length % block_size)' failed.</span></span>
<span id="LC18" class="line" lang="console"><span class="go">trying camellia128-gcm</span></span>
<span id="LC19" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:328: nettle_gcm_update: Assertion `ctx-></span>auth_size % GCM_BLOCK_SIZE <span class="o">==</span> 0<span class="s1">' failed.</span></span>
<span id="LC20" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:358: nettle_gcm_encrypt: Assertion `ctx-></span><span class="s1">data_size % GCM_BLOCK_SIZE == 0'</span> failed.</span>
<span id="LC21" class="line" lang="console"><span class="go">trying camellia256-gcm</span></span>
<span id="LC22" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:328: nettle_gcm_update: Assertion `ctx-></span>auth_size % GCM_BLOCK_SIZE <span class="o">==</span> 0<span class="s1">' failed.</span></span>
<span id="LC23" class="line" lang="console"><span class="gp">cipher-api-test: gcm.c:358: nettle_gcm_encrypt: Assertion `ctx-></span><span class="s1">data_size % GCM_BLOCK_SIZE == 0'</span> failed.</span>
<span id="LC24" class="line" lang="console"><span class="go">trying chacha20-poly1305</span></span>
<span id="LC25" class="line" lang="console"><span class="gp">cipher-api-test: chacha-poly1305.c:131: nettle_chacha_poly1305_encrypt: Assertion `ctx-></span>data_size % CHACHA_POLY1305_BLOCK_SIZE <span class="o">==</span> 0<span class="s1">' failed.</span></span></code></pre>
<p dir="auto">The similar errors are also in <a href="https://gitlab.com/gnutls/gnutls/-/issues/764" data-original="#764" data-link="false" data-link-reference="false" data-project="179611" data-issue="20710069" data-reference-type="issue" data-container="body" data-placement="top" title="Test failure in test-ciphers-api.sh" class="gfm gfm-issue has-tooltip">#764</a>, where the solution was to skip the test depending on the host CPU, but I suspect we should make the nettle fallback functions work.</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1205">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/67a9c7f4cb18148809d876528a0cef07/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/1205"}}</script>
</p>
</div>
</body>
</html>