I just downloaded OpenSSL, compiled nativejce.dll (MSDEV on WIN32) and am able to run
the tests (I
had to comment out System.loadLibrary("crypto") calls in 2 java files and keep just the
System.loadLibrary("nativejce") calls). Here's the output from the test
(http://marsalis.internet2.edu/cgi-bin/viewcvs.cgi/NativeJCE/java/tests/edu/internet2/middleware/nativejce/CryptoTests.java)
Thanks,
dims
C:\sf\NativeJCE>cat TEST-edu.internet2.middleware.nativejce.CryptoTests.txt
Testsuite: edu.internet2.middleware.nativejce.CryptoTests
Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 9.844 sec
------------- Standard Output ---------------
Native Start: 1078126144057
Native Stop: 1078126144057
Sun Start: 1078126144057
Sun Stop: 1078126144057
Native Start: 1078126144078
Native Stop: 1078126144078
Sun Start: 1078126144078
Sun Stop: 1078126144078
Native Start: 1078126144088
Native Stop: 1078126144088
Sun Start: 1078126144088
Sun Stop: 1078126144088
Native Start: 1078126144088
Native Stop: 1078126144088
Sun Start: 1078126144088
Sun Stop: 1078126144088
Sun sig Start: 1078126148644
Sun sig Stop: 1078126148704
Native sig Start: 1078126148704
Native sig Stop: 1078126148714
Sun sig Start: 1078126149635
Sun sig Stop: 1078126149666
Native sig Start: 1078126149666
Native sig Stop: 1078126149676
Sun Sig: 100 sigs in 2694 ms = 26.94 ms/run
Native Sig: 100 sigs in 851 ms = 8.51 ms/run
------------- ---------------- ---------------
Testcase: testMD5 took 0.17 sec
Testcase: testMD5_2 took 0 sec
Testcase: testSHA_1 took 0.01 sec
Testcase: testSHA_1_2 took 0 sec
Testcase: testRSA_1 took 3.204 sec
Testcase: testRSA_2 took 0.941 sec
Testcase: testSHA1withRSASignature took 0.501 sec
Testcase: testSHA1withRSASignature_2 took 0.952 sec
Testcase: testSHA1withRSASignaturePerf took 4.055 sec
--- Scott Cantor <[EMAIL PROTECTED]> wrote:
> > Was reviewing the code....Question - If we write a class that
> > extends SignatureAlgorithm (see SignatureBaseRSA$SignatureRSASHA1 for
> > example, we should be able to use the NativeJCE jar without
> > having to sign it first). Right?
>
> Yes, signature providers can be unsigned, it's encryption providers that
> can't be. So you have to implement the signature algorithm without calling
> back into the JCE.
>
> -- Scott
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/