<!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 style="color: #777777;">
<a href="https://gitlab.com/nmav">Nikos Mavrogiannopoulos</a>
commented:
</p>
<div style="">
<p dir="auto">Currently we use <a href="https://github.com/dot-asm/cryptogams" rel="nofollow noreferrer noopener" target="_blank">cryptogams implementation</a> from openssl for assembly optimizations for x86, x86-64 and aarch64. It would be <em>relatively</em> easy to bring another implementation for it, however setting up the (CI) testing environment may be more tricky. If someone would like to try:</p>
<ul dir="auto">
<li>The gnutls assembler files are placed in <code>lib/accelerated/ARCH/[elf]</code>; a new architecture is registered in <code>lib/accelerated/accelerated.c</code>.</li>
<li>They require a thin layer "linking" nettle with assembly; that is in `lib/accelerated/ARCH/.</li>
<li>The assembler files themselves are auto-generated using rules in <code>cfg.mk</code>; you can do that using <code>make asm-sources</code>
</li>
<li>The testing of non-x86 architectures is done via qemu; images are created in <a href="https://gitlab.com/gnutls/build-images/tree/master/docker-debian-cross">https://gitlab.com/gnutls/build-images/tree/master/docker-debian-cross</a> and <code>.gitlab-ci.yml</code> in main repo has individual tests</li>
</ul>
<p dir="auto">It using the aarch64 as base it should not be too hard to bring power architecture as well.</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/853#note_237210680">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/23d008866fc03573302d70173e7f49a6/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/853#note_237210680"}}</script>
</p>
</div>
</body>
</html>