A P P E N D I X  D

Building Applications for Use With the Sun Crypto Accelerator 1000 Board

This appendix discusses the software supplied with the Sun Crypto Accelerator 1000, which can be used to build OpenSSL-compatible applications to take advantage of the cryptographic acceleration features of the Sun Crypto Accelerator 1000 board. Not all OpenSSL applications will benefit from being compiled in this fashion (as opposed to being built with the stock OpenSSL library, which can be downloaded from www.openssl.org).



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



You must first install the SUNWcrysl package, which contains the required header files and libraries.

Your application must be configured to include OpenSSL headers from /opt/SUNWconn/crypto/include, such as with the compiler flag:

-I /opt/SUNWconn/crypto/include

Additionally, the linker must be directed to include references to the appropriate libraries. Most OpenSSL-compatible applications will reference either or both of the libcrypto.a and libssl.a libraries. The Sun cryptographic libraries must be included as well. The following linker flags will accomplish this:

-L/opt/SUNWconn/crypto/lib -R/opt/SUNWconn/crypto/lib \
-lcrypto -lssl -lcryptography -lnvpair