-r--r--r-- 4092 lib25519-20230630/doc/html/index.html raw
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> html{overflow-y:scroll} body{font-family:"Noto Sans","Droid Sans","DejaVu Sans","Arial",sans-serif;line-height:1.6} tt,code{font-family:"Noto Sans Mono","Droid Sans Mono","DejaVu Sans Mono","Courier New",monospace,sans-serif;font-size:1em;} h1{font-size:1.5em} h2{font-size:1.3em} h3{font-size:1.0em} h1 a{text-decoration:none} table{border-collapse:collapse} th,td{border:1px solid black} table a{text-decoration:none} .links a:hover{text-decoration:underline} .links a:active{text-decoration:underline} .links img{width:200px;padding-left:1em} .links td{border:0px;padding-top:0.5em;padding-bottom:0.5em} .openssl{color:#004040} .lib25519{color:#c25519} .headline{padding:0;font-weight:bold;font-size:1.5em;vertical-align:top;padding-bottom:0.5em;color:#c25519} .navt{display:inline-block;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; min-width:16%;margin:0;padding:0;padding-left:0.5em;padding-right:0.5em;vertical-align:center; font-weight:bold;font-size:1.1em;text-align:center;border:1px solid black} .here{border-bottom:0px;background-color:#ffffff} .away{background-color:#c25519;} .away a{text-decoration:none;display:block;color:#ffffff} .away a:hover,.away a:active{text-decoration:underline} .main{margin:0;padding-top:0em;padding-bottom:1%;clear:both} </style> <title> lib25519: Intro</title> </head> <body> <div class=headline> lib25519</div> <div class=nav> <div class="navt here">Intro </div><div class="navt away"><a href=download.html>Download</a> </div><div class="navt away"><a href=install.html>Install</a> </div><div class="navt away"><a href=api.html>API</a> </div><div class="navt away"><a href=x25519-cli.html>X CLI</a> </div><div class="navt away"><a href=ed25519-cli.html>Ed CLI</a> </div><div class="navt away"><a href=security.html>Security</a> </div><div class="navt away"><a href=speed.html>Speed</a> </div><div class="navt away"><a href=internals.html>Internals</a> </div><div class="navt away"><a href=people.html>People</a> </div><div class="navt away"><a href=license.html>License</a> </div></div> <div class=main> <p>lib25519 is a microlibrary for the X25519 encryption system and the Ed25519 signature system, both of which use the Curve25519 elliptic curve. Curve25519 is the fastest curve in TLS 1.3, and the only curve in Wireguard, Signal, and many other applications (see Nicolai Brown's page <a href="https://ianix.com/pub/curve25519-deployment.html">https://ianix.com/pub/curve25519-deployment.html</a>).</p> <p>lib25519 has a very simple stateless <a href="api.html">API</a> based on the SUPERCOP API, with wire-format inputs and outputs, providing functions that directly match the central cryptographic operations in X25519 and Ed25519:</p> <ul> <li><code>lib25519_dh_keypair(pk,sk)</code>: X25519 key generation</li> <li><code>lib25519_dh(k,pk,sk)</code>: shared-secret generation</li> <li><code>lib25519_sign_keypair(pk,sk)</code>: Ed25519 key generation</li> <li><code>lib25519_sign(sm,&amp;smlen,m,mlen,sk)</code>: signing</li> <li><code>lib25519_sign_open(m,&amp;mlen,sm,smlen,pk)</code>: verification + message recovery</li> </ul> <p>Internally, lib25519 includes implementations designed for <a href="speed.html">performance</a> on various CPUs, implementations designed to work portably across CPUs, and automatic run-time selection of implementations.</p> <p>lib25519 is intended to be called by larger multi-function libraries, including libraries in other languages via FFI. The idea is that lib25519 will take responsibility for the details of X25519/Ed25519 computation, including optimization, timing-attack protection, and eventually verification, freeing up the calling libraries to concentrate on application-specific needs such as protocol integration. Applications can also call lib25519 directly.</p><hr><font size=1><b>Version:</b> This is version 2023.06.29 of the "Intro" web page. </font> </div> </body> </html>