﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ucis.nl/index.php?action=history&amp;feed=atom&amp;title=NaCl%2FShared</id>
	<title>NaCl/Shared - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ucis.nl/index.php?action=history&amp;feed=atom&amp;title=NaCl%2FShared"/>
	<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=NaCl/Shared&amp;action=history"/>
	<updated>2026-05-14T08:08:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://wiki.ucis.nl/index.php?title=NaCl/Shared&amp;diff=135&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=NaCl/Shared&amp;diff=135&amp;oldid=prev"/>
		<updated>2022-11-09T14:49:53Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:49, 9 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://wiki.ucis.nl/index.php?title=NaCl/Shared&amp;diff=134&amp;oldid=prev</id>
		<title>Admin at 22:35, 9 April 2011</title>
		<link rel="alternate" type="text/html" href="http://wiki.ucis.nl/index.php?title=NaCl/Shared&amp;diff=134&amp;oldid=prev"/>
		<updated>2011-04-09T22:35:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To build a shared, dynamically linkable library from the nacl sourcecode:&lt;br /&gt;
 # Download and extract the NaCl sourcecode:&lt;br /&gt;
 wget -O- http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2 | bunzip2 | tar -xf -&lt;br /&gt;
 cd nacl-20110221&lt;br /&gt;
 # Remove some implementations that do not want to be relocatable (it will fall back to another implementation)&lt;br /&gt;
 rm -r crypto_onetimeauth/poly1305/amd64&lt;br /&gt;
 # Patch the compiler commands to create relocatable code&lt;br /&gt;
 sed -i &amp;quot;s/$/ -fPIC/&amp;quot; okcompilers/c&lt;br /&gt;
 # Patch the code to accept application input for the key generation functions&lt;br /&gt;
 wget -O- http://oss.ucis.nl/nacl/shared/shared.c | patch -p1&lt;br /&gt;
 # Build the NaCl library, this takes some time...&lt;br /&gt;
 ./do&lt;br /&gt;
 # Build and locate some utilities used by the nacl build process to find the CPU architecture (and output directory) and an useable compiler&lt;br /&gt;
 gcc okcompilers/abiname.c -o abiname&lt;br /&gt;
 ABINAME=&amp;quot;$(./abiname &amp;quot;&amp;quot; | cut -b 2-)&amp;quot;&lt;br /&gt;
 BUILDDIR=&amp;quot;build/$(hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]')&amp;quot;&lt;br /&gt;
 NACLLIB=&amp;quot;${BUILDDIR}/lib/${ABINAME}/libnacl.a&amp;quot;&lt;br /&gt;
 OKCOMPILER=&amp;quot;$($BUILDDIR/bin/okc-${ABINAME} | head -n 1)&amp;quot;&lt;br /&gt;
 # Compile some frontend code into a shared library (download, preprocess with NaCl header files, rewrite some lines, compile and link with the static nacl library)&lt;br /&gt;
 wget -O- http://oss.ucis.nl/nacl/shared/shared.c |&lt;br /&gt;
 ${OKCOMPILER} -x c -E - -I &amp;quot;${BUILDDIR}/include/${ABINAME}&amp;quot; |&lt;br /&gt;
        sed &amp;quot;s/export_//&amp;quot; |&lt;br /&gt;
        ${OKCOMPILER} -fPIC -nostdlib -shared -Wl,--no-undefined -o &amp;quot;libnacl.so&amp;quot; -x c - -x none &amp;quot;${NACLLIB}&amp;quot;&lt;br /&gt;
 # Install library to /usr/lib&lt;br /&gt;
 install -m 644 libnacl.so /usr/lib/&lt;br /&gt;
 # Install header files to /usr/include/nacl&lt;br /&gt;
 mkdir /usr/include/nacl&lt;br /&gt;
 (&lt;br /&gt;
   cd /usr/include/nacl&lt;br /&gt;
   wget http://oss.ucis.nl/nacl/shared/crypto_box.h http://oss.ucis.nl/nacl/shared/crypto_box_curve25519xsalsa20poly1305.h http://oss.ucis.nl/nacl/shared/crypto_scalarmult_curve25519.h http://oss.ucis.nl/nacl/shared/crypto_sign_edwards25519sha512batch.h&lt;br /&gt;
 )&lt;br /&gt;
&lt;br /&gt;
=== File list ===&lt;br /&gt;
* http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2&lt;br /&gt;
* http://oss.ucis.nl/nacl/shared/shared.c&lt;br /&gt;
* http://oss.ucis.nl/nacl/shared/keypair_random_input.patch&lt;br /&gt;
* http://oss.ucis.nl/nacl/shared/crypto_box.h&lt;br /&gt;
* http://oss.ucis.nl/nacl/shared/crypto_box_curve25519xsalsa20poly1305.h&lt;br /&gt;
* http://oss.ucis.nl/nacl/shared/crypto_scalarmult_curve25519.h&lt;br /&gt;
* http://oss.ucis.nl/nacl/shared/crypto_sign_edwards25519sha512batch.h&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>