README.FIPS 3.5 KB

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