1 Preliminary status and build information for FIPS module v2.0
3 NB: if you are cross compiling you now need to use the latest "incore2" script
4 from http://www.openssl.org/docs/fips/incore2
6 If you have any object files from a previous build do:
10 To build the module do:
12 ./config fipscanisterbuild
15 Build should complete without errors.
21 again should complete without errors.
25 1. Download an appropriate set of testvectors from www.openssl.org/docs/fips
26 those for 2007 are OK.
28 2. Extract the files to a suitable directory.
30 3. Run the test vector perl script, for example:
33 perl fipsalgtest.pl --dir=/wherever/stuff/was/extracted
35 4. It should say "passed all tests" at the end. Report full details of any
42 to remove any object modules from previous compile.
44 Run symbol hiding test:
46 ./config fipscanisteronly -DOPENSSL_FIPSSYMS
49 This time only the fips utilities should be built.
51 Examine the external symbols in fips/fipscanister.o they should all begin
52 with FIPS or fips. One way to check with GNU nm is:
54 nm -g --defined-only fips/fipscanister.o | grep -v -i fips
56 Restricted tarball tests.
58 The validated module will have its own tarball containing sufficient code to
59 build fipscanister.o and the associated algorithm tests. You can create a
60 similar tarball yourself for testing purposes using the commands below.
62 Standard restricted tarball:
64 make -f Makefile.fips dist
66 Prime field field only ECC tarball:
68 make NOEC2M=1 -f Makefile.fips dist
70 Once you've created the tarball extract into a fresh directory and do:
75 You can then run the algorithm tests as above. This build automatically uses
76 fipscanisteronly and -DOPENSSL_FIPSYMS and no-ec2m as appropriate.
80 Algorithm tests are pre-2011.
81 The fipslagtest.pl script wont auto run new algorithm tests such as DSA2.
82 Code needs extensively reviewing to ensure it builds correctly on
83 supported platforms and is compliant with FIPS 140-2.
84 The "FIPS capable OpenSSL" is not yet complete: meaning that the rest of
85 OpenSSL doesn't always use the correct FIPS module APIs and block others