jbigi update

This commit is contained in:
zzz
2008-04-01 14:56:49 +00:00
parent c03082b2f6
commit 0f53feb7c0

View File

@ -22,12 +22,35 @@ testing before setting the default requirement for building jbigi.jar.</p>
<h2>Step-by-step instructions</h2>
<ol>
<li>Look at <a href="http://localhost:7657/logs.jsp">your wrapper logs</a>,
at the point where I2P first starts. There should be one of two messages - either
<tt>
INFO: Locally optimized native BigInteger loaded from the library path
</tt>
or
<tt>
INFO: Native BigInteger library jbigi not loaded - using pure java</tt>.
If the native BitInteger library was NOT loaded, you definitely need to
compile your own.
Certain platforms, such as OS X, OpenSolaris, and 64-bit systems,
may require you to compile your own library.
If the BigInteger library was loaded, do at least the next step to see
what your performance is.
</li>
<li>Look on <a href="http://localhost:7657/oldstats.jsp">http://localhost:7657/oldstats.jsp</a>
to see what the values for <code>crypto.elGamal.decrypt</code> and
to see what the lifetime average values for <code>crypto.elGamal.decrypt</code> and
<code>crypto.elGamal.encrypt</code> are. The numbers are times in milliseconds. Copy these somewhere so you can compare
them later on.</li>
<li>Get the latest sourcecode of I2P out of the monotone database mtn.i2p2.de</li>
them later on.
The network average for encrypt time is about 20ms.
If your encrypt time is less than 50ms for a relatively new processor, or less than 100ms
for an older processor, and the native BigInteger library was loaded, you are probably fine.
</li>
<li>Get the latest released sourcecode of I2P from
<a href="download.html">the download page</a>, or get the cutting-edge source
out of the monotone database mtn.i2p2.de</li>
<li>Inside the source tree change directory to: <code>core/c</code></li>
<li>Read the README file. You must download GMP version 4.2.2 from
from <a href="http://www.swox.com/gmp/">http://www.swox.com/gmp</a>, saving it to jbigi/gmp-4.2.2.tar.bz2.
<li>Take a look at <code>build.sh</code>, if your <code>JAVA_HOME</code>
environment variable is set and you are using Linux then it might just work.
Otherwise change the settings.</li>