Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using FIPS capable OpenSSL through Java JNI

135 views
Skip to first unread message

Susumu Sai

unread,
Mar 29, 2010, 8:50:26 AM3/29/10
to
When I use FIPS capable OpenSSL through Java JNI, I got error:
"3392:error:2D06906F:FIPS routines:FIPS_CHECK_INCORE_FINGERPRINT:fingerprint does not match nonpic relocated:.\fips\fips.c:236"
which means it failed the base address check.
Based on OpenSSL FIPS document, I changed to use a different base address such as 0x75000000, then yes it works.
Just wandering:
(1) Why FIPS capable OpenSSL is doing base address check?
(2) Any recommend way to use FIPS capable OpenSSL through Java?


__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.

______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List opens...@openssl.org
Automated List Manager majo...@openssl.org

Dr. Stephen Henson

unread,
Mar 29, 2010, 8:57:57 AM3/29/10
to
On Mon, Mar 29, 2010, Susumu Sai wrote:

> When I use FIPS capable OpenSSL through Java JNI, I got error:
> "3392:error:2D06906F:FIPS routines:FIPS_CHECK_INCORE_FINGERPRINT:fingerprint does not match nonpic relocated:.\fips\fips.c:236"
> which means it failed the base address check.
> Based on OpenSSL FIPS document, I changed to use a different base address such as 0x75000000, then yes it works.
> Just wandering:
> (1) Why FIPS capable OpenSSL is doing base address check?
>

You only get the address check if the in core integrity check fails. The
reason it does that is to provide a useful diagnostic as to why it has failed.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

Iain

unread,
Apr 16, 2010, 7:42:02 AM4/16/10
to
On Mar 29, 1:57 pm, st...@openssl.org ("Dr. Stephen Henson") wrote:
> On Mon, Mar 29, 2010, Susumu Sai wrote:
> > When I use FIPS capable OpenSSL through JavaJNI, I got error:

> > "3392:error:2D06906F:FIPS routines:FIPS_CHECK_INCORE_FINGERPRINT:fingerprint does not match nonpic relocated:.\fips\fips.c:236"
> > which means it failed the base address check.
> > Based on OpenSSL FIPS document, I changed to use a different base address such as 0x75000000, then yes it works.
> > Just wandering:
> > (1) Why FIPS capable OpenSSL is doing base address check?
>
> You only get the address check if the in core integrity check fails. The
> reason it does that is to provide a useful diagnostic as to why it has failed.
>

I succeded in getting this to work using fipsld and also including the
link option "-Wl,-Bsymbolic", this was from thread in
"mailing.openssl.users " titled "FIPS compliant shared object Options
" but to be honest I'm not 100% sure if this still creates a valid
FIPS shared library that can be used in a project requiring full FIPS
140-2 compliance?

Coulter, Iain

unread,
Apr 19, 2010, 4:24:19 AM4/19/10
to
>> When I use FIPS capable OpenSSL through Java JNI, I got error:

>> "3392:error:2D06906F:FIPS routines:FIPS_CHECK_INCORE_FINGERPRINT:fingerprint 
>> does not match nonpic relocated:.\fips\fips.c:236"
>> which means it failed the base address check.
>> Based on OpenSSL FIPS document, I changed to use a different base address
>> such as 0x75000000, then yes it works.
>> Just wandering:
>> (1) Why FIPS capable OpenSSL is doing base address check?
>> 
>
> You only get the address check if the in core integrity check fails. The
> reason it does that is to provide a useful diagnostic as to why it has failed.
>
 
I succeded in getting this to work using fipsld and also including the link option "-Wl,-Bsymbolic", this was from thread in "mailing.openssl.users " titled "FIPS compliant shared object Options" but to be honest I'm not 100% sure if this still creates a valid FIPS shared library that can be used in a project requiring full FIPS 140-2 compliance?
 
--
Iain 
 

Coulter, Iain

unread,
Apr 21, 2010, 4:46:58 AM4/21/10
to

Just found out that the thread I commented on is only visible via google
groups?

On openssl-dev the thread I referred to is here:
http://www.mail-archive.com/openss...@openssl.org/msg52448.html
But google groups thread has about 5 other responses?
http://groups.google.com/group/mailing.openssl.users/browse_thread/threa
d/f7dc6346ffe97750/f75a0e078101eca1?lnk=gst&q=FIPS+shared#f75a0e078101ec
a1


--
Iain

0 new messages