A P P E N D I X  D

Configuring Custom Applications to Use the Board

This appendix describes the software supplied with the board. This software can be used to build OpenSSL-compatible applications to take advantage of the cryptographic acceleration features of the board. Not all OpenSSL applications benefit from being compiled in this fashion. Some applications benefit from being built with the stock OpenSSL library, which can be downloaded from http://www.openssl.org.


Configuring Custom Applications to Use the Board

This information on building applications to use the Sun Crypto Accelerator 4000 software and hardware is provided strictly as-is, and is not an officially supported part of this product. This information might be useful, but it is provided without any warranty. If you require a Sun-supported solution, please contact Sun Professional Services to learn about your options.


procedure icon  To Configure Custom Applications to Use the Board

1. Install the SUNWkcl2o package, which contains the required header files and libraries.

2. Configure your application to include OpenSSL headers from /opt/SUNWconn/cryptov2/include, such as with the following compiler flag:

-I/opt/SUNWconn/cryptov2/include

3. Direct the linker to include references to the appropriate libraries.

Most OpenSSL-compatible applications reference either or both of the libcrypto.a and libssl.a libraries. Include the Sun cryptographic libraries. The following linker attributes accomplish this:

-L/opt/SUNWconn/cryptov2/lib -R/opt/SUNWconn/cryptov2/lib \
-lcrypto -lssl -lkcl