README.FIPS 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Preliminary status and build information for FIPS module v2.0
  2. NB: if you are cross compiling you now need to use the latest "incore" script
  3. this can be found at util/incore in the tarballs.
  4. If you have any object files from a previous build do:
  5. make clean
  6. To build the module do:
  7. ./config fipscanisteronly
  8. make
  9. Build should complete without errors.
  10. Build test utilities:
  11. make build_tests
  12. Run test suite:
  13. test/fips_test_suite
  14. again should complete without errors.
  15. Run test vectors:
  16. 1. Download an appropriate set of testvectors from www.openssl.org/docs/fips
  17. only the fips-2.0 testvector files are usable for complete tests.
  18. 2. Extract the files to a suitable directory.
  19. 3. Run the test vector perl script, for example:
  20. cd fips
  21. perl fipsalgtest.pl --dir=/wherever/stuff/was/extracted
  22. 4. It should say "passed all tests" at the end. Report full details of any
  23. failures.
  24. If you wish to use the older 1.2.x testvectors (for example those from 2007)
  25. you need the command line switch --disable-v2 to fipsalgtest.pl
  26. Examine the external symbols in fips/fipscanister.o they should all begin
  27. with FIPS or fips. One way to check with GNU nm is:
  28. nm -g --defined-only fips/fipscanister.o | grep -v -i fips
  29. If you get *any* output at all from this test (i.e. symbols not starting with
  30. fips or FIPS) please report it.
  31. Restricted tarball tests.
  32. The validated module will have its own tarball containing sufficient code to
  33. build fipscanister.o and the associated algorithm tests. You can create a
  34. similar tarball yourself for testing purposes using the commands below.
  35. Standard restricted tarball:
  36. make -f Makefile.fips dist
  37. Prime field field only ECC tarball:
  38. make NOEC2M=1 -f Makefile.fips dist
  39. Once you've created the tarball extract into a fresh directory and do:
  40. ./config
  41. make
  42. You can then run the algorithm tests as above. This build automatically uses
  43. fipscanisterbuild and no-ec2m as appropriate.
  44. FIPS capable OpenSSL test: WARNING PRELIMINARY INSTRUCTIONS, SUBJECT TO CHANGE.
  45. At least initially the test module and FIPS capable OpenSSL may change and
  46. by out of sync. You are advised to check for any changes and pull the latest
  47. source from CVS if you have problems. See anon CVS and rsync instructions at:
  48. http://www.openssl.org/source/repos.html
  49. Make or download a restricted tarball from ftp://ftp.openssl.org/snapshot/
  50. If required set the environment variable FIPSDIR to an appropriate location
  51. to install the test module. If cross compiling set other environment
  52. variables too.
  53. In this restricted tarball on a Linux or U*ix like system run:
  54. ./config
  55. make
  56. make install
  57. On Windows from a VC++ environment do:
  58. ms\do_fips
  59. This will build and install the test module and some associated files.
  60. Now download the latest version of the OpenSSL 1.0.1 branch from either a
  61. snapshot or preferably CVS. For Linux do:
  62. ./config fips [other args]
  63. make
  64. For Windows:
  65. perl Configure VC-WIN32 fips [other args]
  66. ms\do_nasm
  67. nmake -f ms\ntdll.mak
  68. (or ms\nt.mak for a static build).
  69. Where [other args] can be any other arguments you use for an OpenSSL build
  70. such as "shared" or "zlib".
  71. This will build the fips capable OpenSSL and link it to the test module. You
  72. can now try linking and testing applications against the FIPS capable OpenSSL.
  73. Please report any problems to either the openssl-dev mailing list or directly
  74. to me steve@openssl.org . Check the mailing lists regularly to avoid duplicate
  75. reports.
  76. Known issues:
  77. Code needs extensively reviewing to ensure it builds correctly on
  78. supported platforms and is compliant with FIPS 140-2.
  79. The "FIPS capable OpenSSL" is still largely untested, it builds and runs
  80. some simple tests OK on some systems but needs far more "real world" testing.