05a8f32
User guide for the FIPS Red Hat Enterprise Linux - OpenSSL Module
05a8f32
=================================================================
05a8f32
05a8f32
This package contains libraries which comprise the FIPS 140-2
05a8f32
Red Hat Enterprise Linux - OPENSSL Module.
05a8f32
05a8f32
The module files
05a8f32
================
76952b7
/usr/lib[64]/libcrypto.so.1.0.0d
76952b7
/usr/lib[64]/libssl.so.1.0.0d
76952b7
/usr/lib[64]/.libcrypto.so.1.0.0d.hmac
76952b7
/usr/lib[64]/.libssl.so.1.0.0d.hmac
05a8f32
05a8f32
Dependencies
05a8f32
============
05a8f32
05a8f32
The approved mode of operation requires kernel with /dev/urandom RNG running
05a8f32
with properties as defined in the security policy of the module. This is
05a8f32
provided by kernel packages with validated Red Hat Enterprise Linux - IPSec
05a8f32
Crytographic Module.
05a8f32
05a8f32
Installation
05a8f32
============
05a8f32
05a8f32
The RPM package of the module can be installed by standard tools recommended
05a8f32
for installation of RPM packages on the Red Hat Enterprise Linux system (yum,
05a8f32
rpm, RHN remote management tool).
05a8f32
05a8f32
For proper operation of the in-module integrity verification the prelink has to
05a8f32
be disabled. This can be done with setting PRELINKING=no in the
05a8f32
/etc/sysconfig/prelink configuration file. If the libraries were already
05a8f32
prelinked the prelink should be undone on all the system files with the
05a8f32
'prelink -u -a' command.
05a8f32
05a8f32
Usage and API
05a8f32
=============
05a8f32
05a8f32
The module respects kernel command line FIPS setting. If the kernel command
05a8f32
line contains option fips=1 the module will initialize in the FIPS approved
05a8f32
mode of operation automatically. To allow for the automatic initialization the
05a8f32
application using the module has to call one of the following API calls:
05a8f32
76952b7
- void OPENSSL_init_library(void) - this will do only a basic initialization
76952b7
of the library and does initialization of the FIPS approved mode without setting
76952b7
up EVP API with supported algorithms.
05a8f32
05a8f32
- void OPENSSL_add_all_algorithms(void) - this API function calls
05a8f32
OPENSSL_init() implicitly and also adds all approved algorithms to the EVP API
05a8f32
in the approved mode 
05a8f32
05a8f32
- void SSL_library_init(void) - it calls OPENSSL_init() implicitly and also
05a8f32
adds algorithms which are necessary for TLS protocol support and initializes
05a8f32
the SSL library.
05a8f32
05a8f32
To explicitely put the library to the approved mode the application can call
05a8f32
the following function:
05a8f32
05a8f32
- int FIPS_mode_set(int on) - if called with 1 as a parameter it will switch
05a8f32
the library from the non-approved to the approved mode. If any of the selftests
05a8f32
and integrity verification tests fail, the library is put into the error state
05a8f32
and 0 is returned. If they succeed the return value is 1.
05a8f32
05a8f32
To query the module whether it is in the approved mode or not:
05a8f32
05a8f32
- int FIPS_mode(void) - returns 1 if the module is in the approved mode,
05a8f32
0 otherwise.
05a8f32
05a8f32
To query whether the module is in the error state:
05a8f32
05a8f32
- int FIPS_selftest_failed(void) - returns 1 if the module is in the error
05a8f32
state, 0 otherwise.
2ccfa6b
2ccfa6b
To zeroize the FIPS RNG key and internal state the application calls:
2ccfa6b
2ccfa6b
- void RAND_cleanup(void)