README.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Notes on the wolfssl-fips project
  2. First, if you did not get the FIPS files with your archive, you must contact
  3. wolfSSL to obtain them.
  4. The IDE/WIN10/wolfssl-fips.sln solution is for the FIPS v2 #3389 certificate or later.
  5. # Building the wolfssl-fips project
  6. The wolfCrypt FIPS library for Windows is a part of the wolfSSL library. It
  7. must be built as a static library, for the moment.
  8. The library project is built with Whole Program Optimization disabled. This is
  9. required so that necessary components of the library are not optimized away.
  10. There are two functions added to the library that are used as markers in
  11. memory for the in-core memory check of the code. WPO consolidates them into a
  12. single function. WPO also optimizes away the automatic FIPS entry function.
  13. Each of the source files inside the FIPS boundary defines their own code and
  14. constant section. The code section names start with ".fipsA$" and the constant
  15. section names start with ".fipsB$". Each subsection has a letter to organize
  16. them in a specific order. This specific ordering puts marker functions and
  17. constants on either end of the boundary so it can be hashed.
  18. # In Core Memory Test
  19. The In Core Memory test calculates a checksum (HMAC-SHA256) of the wolfCrypt
  20. FIPS library code and constant data and compares it with a known value in
  21. the code.
  22. The Randomized Base Address setting needs to be disabled on the 32-bit builds
  23. but can be enabled on the 64-bit builds. In the 32-bit mode the addresses
  24. being different throws off the in-core memory calculation. It looks like in
  25. 64-bit mode the library uses all offsets, so the core hash calculation
  26. is the same every time.
  27. The "verifyCore" check value in the source fips_test.c needs to be updated when
  28. building the code. The POS performs this check and the default failure callback
  29. will print out the calculated checksum. When developing your code, copy this
  30. value and paste it back into your code in the verifyCore initializer then
  31. rebuild the code. When statically linking, you may have to recalculate your
  32. check value when changing your application.
  33. # Build Options
  34. The default build options should be the proper default set of options:
  35. * HAVE_FIPS
  36. * HAVE_FIPS_VERSION=2 (or 3 with WOLFSSL_FIPS_READY)
  37. * HAVE_THREAD_LS
  38. * HAVE_AESGCM
  39. * HAVE_HASHDRBG
  40. * WOLFSSL_SHA384
  41. * WOLFSSL_SHA512
  42. * NO_HC128
  43. * NO_RC4
  44. * NO_RABBIT
  45. * NO_DSA
  46. * NO_MD4
  47. The "NO" options explicitly disable algorithms that are not allowed in
  48. FIPS mode.
  49. Additionally one may enable:
  50. * HAVE_ECC
  51. * OPENSSL_EXTRA
  52. * WOLFSSL_KEY_GEN
  53. These settings are defined in IDE/WIN10/user_settings.h.