| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 4 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 5 |
<style type="text/css"> |
| 6 |
html{overflow-y:scroll;background-color:#091552} |
| 7 |
body{font-family:"Noto Sans","Droid Sans","DejaVu Sans","Arial",sans-serif;line-height:1.5} |
| 8 |
tt,code{background-color:#f0f0f0;font-family:Consolas,Monaco,"Noto Sans Mono","DejaVu Sans Mono",monospace,sans-serif;font-size:1em;} |
| 9 |
pre{margin-left:3em} |
| 10 |
p,ul,ol,blockquote,pre{font-size:1.0em;line-height:1.6} |
| 11 |
li p{font-size:1.0em} |
| 12 |
blockquote p{font-size:1.0em} |
| 13 |
h1{font-size:1.5em} |
| 14 |
h2{font-size:1.3em} |
| 15 |
h3{font-size:1.0em} |
| 16 |
h1 a{text-decoration:none} |
| 17 |
table{border-collapse:collapse} |
| 18 |
th,td{border:1px solid black} |
| 19 |
table a{text-decoration:none} |
| 20 |
table tr{font-size:1.0em;line-height:1.6em} |
| 21 |
table tr{font-size:1.0em;line-height:1.5} |
| 22 |
tbody tr:nth-child(12n+1){background-color:#f0ffff} |
| 23 |
tbody tr:nth-child(12n+2){background-color:#f0ffff} |
| 24 |
tbody tr:nth-child(12n+3){background-color:#f0ffff} |
| 25 |
tbody tr:nth-child(12n+4){background-color:#f0ffff} |
| 26 |
tbody tr:nth-child(12n+5){background-color:#f0ffff} |
| 27 |
tbody tr:nth-child(12n+6){background-color:#f0ffff} |
| 28 |
tbody tr:nth-child(12n+7){background-color:#fffff0} |
| 29 |
tbody tr:nth-child(12n+8){background-color:#fffff0} |
| 30 |
tbody tr:nth-child(12n+9){background-color:#fffff0} |
| 31 |
tbody tr:nth-child(12n+10){background-color:#fffff0} |
| 32 |
tbody tr:nth-child(12n+11){background-color:#fffff0} |
| 33 |
tbody tr:nth-child(12n+12){background-color:#fffff0} |
| 34 |
|
| 35 |
#headline{display:block;margin:0;padding:0;color:#ffffff;background-color:#091552} |
| 36 |
#headline .text{font-weight:bold;font-size:1.0em} |
| 37 |
#headline input{display:none} |
| 38 |
#nav ul{margin:0;padding:0} |
| 39 |
#nav li{list-style-type:none;margin:0;padding:0} |
| 40 |
.navtop{padding-bottom:0.5em;font-weight:bold;font-size:1.0em} |
| 41 |
.navtop{background-color:#091552;color:#ffffff} |
| 42 |
#nav .here{background-color:#091552;color:#ffffff} |
| 43 |
#nav .away{background-color:#091552;color:#ffffff} |
| 44 |
#nav .away a{text-decoration:none;display:block;color:#ffffff} |
| 45 |
#nav .away a:hover,.away a:active{text-decoration:underline} |
| 46 |
#hidemenu{visibility:hidden;display:none;overflow:hidden;position:fixed;top:0;left:0;height:100%;width:100%} |
| 47 |
|
| 48 |
.main{padding:5px} |
| 49 |
.main{background-color:#ffffff} |
| 50 |
.pagetitle{font-size:1.4em;font-weight:bold} |
| 51 |
@media only screen and (min-width:512px) { |
| 52 |
.navtop{padding-top:5px} |
| 53 |
#headline{top:0;margin:0;width:110px;height:100%;position:fixed;overflow:auto} |
| 54 |
#headline .noselect{display:none} |
| 55 |
#headline #nav{visibility:visible;display:block;width:auto;height:auto} |
| 56 |
.main{margin-left:120px} |
| 57 |
#headline #hidemenu{visibility:hidden} |
| 58 |
} |
| 59 |
@media not screen and (min-width:512px) { |
| 60 |
#headline .noselect{-webkit-user-select:none;-ms-user-select:none;user-select:none;} |
| 61 |
#headline #nav #navbot{visibility:hidden;position:fixed;top:0;left:-70%;z-index:2;transition:0.2s;margin:0;padding:0} |
| 62 |
#headline input:checked ~ #nav #navbot{height:100%;position:fixed;top:0;left:0;visibility:visible;display:block;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;vertical-align:center;font-size:1.0em;width:70%;overflow:auto} |
| 63 |
#headline input:checked ~ #hidemenu{visibility:visible;display:block;background:black;opacity:0.3;z-index:1} |
| 64 |
} |
| 65 |
|
| 66 |
.openssl{color:#900009} |
| 67 |
.s2n{color:#004040} |
| 68 |
.lib25519{color:#091552} |
| 69 |
</style> |
| 70 |
<title> |
| 71 |
lib25519: Download</title> |
| 72 |
</head> |
| 73 |
<body> |
| 74 |
<label id=headline> |
| 75 |
<input type=checkbox /> |
| 76 |
<nav id=nav> |
| 77 |
<div class=navtop> |
| 78 |
<span class=noselect>≡</span> |
| 79 |
lib25519</div> |
| 80 |
<ul id=navbot> |
| 81 |
<li class=away><a href=index.html>Intro</a> |
| 82 |
</li><li class=here>Download |
| 83 |
</li><li class=away><a href=install.html>Install</a> |
| 84 |
</li><li class=away><a href=test.html>Test</a> |
| 85 |
</li><li class=away><a href=x25519-cli.html>X CLI</a> |
| 86 |
</li><li class=away><a href=ed25519-cli.html>Ed CLI</a> |
| 87 |
</li><li class=away><a href=api.html>API</a> |
| 88 |
</li><li class=away><a href=security.html>Security</a> |
| 89 |
</li><li class=away><a href=speed.html>Speed</a> |
| 90 |
</li><li class=away><a href=internals.html>Internals</a> |
| 91 |
</li><li class=away><a href=people.html>People</a> |
| 92 |
</li><li class=away><a href=license.html>License</a> |
| 93 |
</li></ul></nav> |
| 94 |
<div id=hidemenu></div> |
| 95 |
</label> |
| 96 |
<div class=main> |
| 97 |
<div class=pagetitle>lib25519: Download</div> |
| 98 |
<p>To download and unpack the latest version of lib25519:</p> |
| 99 |
<pre><code>wget -m https://lib25519.cr.yp.to/lib25519-latest-version.txt |
| 100 |
version=$(cat lib25519.cr.yp.to/lib25519-latest-version.txt) |
| 101 |
wget -m https://lib25519.cr.yp.to/lib25519-$version.tar.gz |
| 102 |
tar -xzf lib25519.cr.yp.to/lib25519-$version.tar.gz |
| 103 |
cd lib25519-$version |
| 104 |
</code></pre> |
| 105 |
<p>Then <a href="install.html">install</a>.</p> |
| 106 |
<h3 id="changelog">Archives and changelog (reverse chronological)</h3> |
| 107 |
<p><a href="lib25519-20260614.tar.gz"><code>lib25519-20260614.tar.gz</code></a> <a href="lib25519-20260614.html">browse</a></p> |
| 108 |
<p>Add many new and improved <code>arm64</code> implementations.</p> |
| 109 |
<p>Support <code>bignum_inv_p25519</code> in <code>use-s2n-bignum</code>.</p> |
| 110 |
<p>Remove use of <code>rodata</code> for the <code>nG</code> tables in <code>use-s2n-bignum</code>. |
| 111 |
Teach <code>checkinsns</code> how to skip <code>nG</code> tables at the end of a code section.</p> |
| 112 |
<p>Add <code>--prioritizeverified</code> option.</p> |
| 113 |
<p>Upgrade to <code>cryptoint 20250414</code>. |
| 114 |
Make more use of <code>cryptoint</code>, as in SUPERCOP.</p> |
| 115 |
<p>Replace <code>shrq %rcx,%rbx</code> with <code>shrq %cl,%rbx</code> |
| 116 |
for portability to more assemblers.</p> |
| 117 |
<p>Support Python 3.14 in <code>fulltest</code>, |
| 118 |
copying djbsort patch supplied by Georg Sauthoff.</p> |
| 119 |
<p>Copy <code>checkinsns</code> improvements, <code>checknamespace</code> improvements, and <code>hostsanitize</code> improvements from libmceliece.</p> |
| 120 |
<p>Add initial support for <code>$CROSS</code> and <code>$DESTDIR</code>.</p> |
| 121 |
<p>Add initial tweaks for Fil-C support. |
| 122 |
(But Fil-C is starting to add support for inline assembly so some of these tweaks can disappear later.)</p> |
| 123 |
<p>Include auto-generator for <code>compilers/*</code>.</p> |
| 124 |
<p>Speed comparison: Bump to current versions of OpenSSL and s2n-bignum. |
| 125 |
Add a few more microarchitectures. |
| 126 |
Pin benchmarks to core 0 to avoid questions about big-little CPUs.</p> |
| 127 |
<p>Change HTML style, in particular for better usability on phones.</p> |
| 128 |
<p><a href="lib25519-20241004.tar.gz"><code>lib25519-20241004.tar.gz</code></a> <a href="lib25519-20241004.html">browse</a></p> |
| 129 |
<p>Announce latest version on front page.</p> |
| 130 |
<p>Upgrade to <code>cryptoint 20241003</code>.</p> |
| 131 |
<p>Use the <code>cryptoint</code> big-endian load/store functions in various SHA-512 functions. |
| 132 |
In particular, this ports <code>wflip</code> to big-endian CPUs; |
| 133 |
thanks to Jan Mojzis for pointing out the portability issue.</p> |
| 134 |
<p>Include <code>crypto_declassify.h</code> for non-<code>valgrind</code> builds, |
| 135 |
and include <code>crypto_asm_rodata.h</code> for default builds. |
| 136 |
Thanks to Jan Mojzis.</p> |
| 137 |
<p>Align constants in |
| 138 |
<code>crypto_nP/montgomery25519/amd64-avx512-8x1-ns10l-maax/shared-consts.c</code>.</p> |
| 139 |
<p><a href="lib25519-20240928.tar.gz"><code>lib25519-20240928.tar.gz</code></a> <a href="lib25519-20240928.html">browse</a></p> |
| 140 |
<p>Add <code>mGnP/ed25519/arm64-maa4-{int,red}mul</code>.</p> |
| 141 |
<p>Add <code>multiscalar/ed25519/amd64-{maa4,maax,mxaa}-opt</code>, |
| 142 |
<code>multiscalar/ed25519/amd64-{maa4,maax,mxaa}-p3-opt</code>, |
| 143 |
<code>multiscalar/ed25519/arm64-maa4-{int,red}mul</code>, |
| 144 |
<code>multiscalar/ed25519/arm64-maa4-{int,red}mul-p3</code>.</p> |
| 145 |
<p>Use <code>nsquare</code> more in <code>fe25519_pow2523.c</code>.</p> |
| 146 |
<p>Replace <code>fe25519_cmov.c</code> with <code>fe25519_cmov.S</code>.</p> |
| 147 |
<p>Speed up <code>double_scalarmult</code>, |
| 148 |
<code>arm64-maa4-{int,red}mul/mladder.S</code>, |
| 149 |
<code>arm64-maa4-{int,red}mul/fe25519_nsquare.S</code>, |
| 150 |
<code>arm64-maa4-{int,red}mul/ge25519_base.S</code>.</p> |
| 151 |
<p>Switch speed measurements from medians to interquartile means.</p> |
| 152 |
<p>Upgrade from <code>inttypes</code> to <code>cryptoint 20240806</code>, and use <code>cryptoint</code> more systematically.</p> |
| 153 |
<p>Support <code>valgrind</code> in <code>lib25519-test</code>, with help from <code>configure</code>.</p> |
| 154 |
<p>Split <code>command/lib25519-test.c</code> into multiple <code>.c</code> files.</p> |
| 155 |
<p>Support finer-grained command-line splits in <code>lib25519-test</code>. |
| 156 |
Add <code>lib25519-fulltest</code>. |
| 157 |
Document <code>lib25519-fulltest</code> as being required for support.</p> |
| 158 |
<p>Move some entries not supported by <code>valgrind</code> |
| 159 |
from <code>compilers</code> to <code>skipcompilers</code>.</p> |
| 160 |
<p>Rename <code>--no</code> as <code>--no-</code>.</p> |
| 161 |
<p>Rename <code>ALIGN</code> as <code>CRYPTO_ALIGN</code>. |
| 162 |
Systematically use <code>CRYPTO_ALIGN</code>.</p> |
| 163 |
<p>Use <code>hidden</code> visibility for <code>crypto_*</code> symbols. |
| 164 |
Use <code>ASM_HIDDEN</code> in more <code>.S</code> files.</p> |
| 165 |
<p>Use <code>.note.GNU-stack</code> more.</p> |
| 166 |
<p>Handle <code>checkinsns</code> etc. on shared directories.</p> |
| 167 |
<p>Move <code>cat result-impl</code> to <code>default</code> for better visibility.</p> |
| 168 |
<p>Recognize <code>sun4v</code> as <code>sparc64</code>.</p> |
| 169 |
<p>For <code>donna_c64</code>: |
| 170 |
Change <code>uint128_t</code> to <code>my_uint128_t</code>; |
| 171 |
switch from mode <code>TI</code> to <code>unsigned __int128</code>; |
| 172 |
import load/store fixes from upstream; |
| 173 |
compile only for 64-bit architectures.</p> |
| 174 |
<p>Handle <code>implarchreq</code> better in <code>configure</code>.</p> |
| 175 |
<p>Make <code>dispatch/ifunc.do</code> work with <code>configure --noclean</code>.</p> |
| 176 |
<p>Add <code>note.GNU-stack</code> to assembly.</p> |
| 177 |
<p>Sort directory order in <code>scripts-build/ofiles</code>. |
| 178 |
Thanks to Jan Mojzis.</p> |
| 179 |
<p>For <code>use-s2n-bignum</code>, |
| 180 |
insist locally on precomputed SHA-256 checksums.</p> |
| 181 |
<p><a href="lib25519-20240321.tar.gz"><code>lib25519-20240321.tar.gz</code></a> <a href="lib25519-20240321.html">browse</a></p> |
| 182 |
<p>Add <code>./use-s2n-bignum</code> compile-time option, |
| 183 |
along with lib25519+s2n benchmarks and separate s2n-bignum benchmarks.</p> |
| 184 |
<p>Speed up <code>amd64-{maa4,maax,mxaa}</code> for <code>nP</code>, <code>nG</code>, <code>mGnP</code>. |
| 185 |
Add <code>amd64-avx512-8x1-ns10l-maax</code> for <code>nP</code>.</p> |
| 186 |
<p>Add initial code for 64-bit ARM.</p> |
| 187 |
<p>MacOS X port: <code>dylib</code>; deal with <code>s</code> and <code>S</code> in <code>checknamespace</code>; |
| 188 |
use <code>-flat_namespace</code> so <code>lib25519-test</code> can substitute <code>randombytes</code>; |
| 189 |
add <code>crypto_asm_rodata.h</code> abstraction; |
| 190 |
expand <code>#define</code> for assembly to eliminate semicolons.</p> |
| 191 |
<p>Add benchmarks for more platforms.</p> |
| 192 |
<p>Support empty compiler lists.</p> |
| 193 |
<p>Improve selection for Zen 2, Zen 3, and Golden Cove.</p> |
| 194 |
<p>Add background colors to speed table.</p> |
| 195 |
<p>Improve HTML formatting for code.</p> |
| 196 |
<p>Add NGI0 information.</p> |
| 197 |
<p><a href="lib25519-20230630.tar.gz"><code>lib25519-20230630.tar.gz</code></a> <a href="lib25519-20230630.html">browse</a></p> |
| 198 |
<p>Add <code>powbatch</code>, <code>nPbatch</code>, and <code>multiscalar</code> APIs |
| 199 |
with various implementations for basic amd64, BMI, ADX, AVX2, and AVX-512, |
| 200 |
plus portable implementations.</p> |
| 201 |
<p>Include benchmarks on more microarchitectures. |
| 202 |
Add auto-generated table in documentation |
| 203 |
summarizing <a href="speed.html">speeds</a>, |
| 204 |
with OpenSSL speeds as a baseline for comparison.</p> |
| 205 |
<p>For compatibility with musl etc., |
| 206 |
support <code>constructor</code> as an alternative to <code>ifunc</code> for dispatch. |
| 207 |
Select <code>constructor</code> automatically if an <code>ifunc</code> compile-time test fails, |
| 208 |
or if <code>--notryifunc</code> is passed to <code>./configure</code>.</p> |
| 209 |
<p>Add command-line interface for shell scripts.</p> |
| 210 |
<p>Rely on separate <a href="https://cpucycles.cr.yp.to">libcpucycles</a> |
| 211 |
to automatically use RDPMC etc., |
| 212 |
and separate <a href="https://randombytes.cr.yp.to">librandombytes</a> |
| 213 |
to automatically use <code>getrandom</code> etc.</p> |
| 214 |
<p>Reorganize documentation into <code>doc/*.md</code> directory, |
| 215 |
with auto-generation of HTML and manual pages.</p> |
| 216 |
<p>Inside auto-generation of <code>command/lib25519-test.c</code>, |
| 217 |
automatically cache Python computations of nP etc.</p> |
| 218 |
<p>Reorganize precomputed tests to handle APIs with variable-length inputs and outputs.</p> |
| 219 |
<p>Import infrastructure improvements from libmceliece.</p> |
| 220 |
<p><a href="lib25519-20221222.tar.gz"><code>lib25519-20221222.tar.gz</code></a> <a href="lib25519-20221222.html">browse</a></p> |
| 221 |
<p><a href="lib25519-20220726.tar.gz"><code>lib25519-20220726.tar.gz</code></a> <a href="lib25519-20220726.html">browse</a></p> |
| 222 |
<p><a href="lib25519-20220426.tar.gz"><code>lib25519-20220426.tar.gz</code></a> <a href="lib25519-20220426.html">browse</a></p><hr><font size=1><b>Version:</b> |
| 223 |
This is version 2026.06.14 of the "Download" web page. |
| 224 |
</font> |
| 225 |
</div> |
| 226 |
</body> |
| 227 |
</html> |