fips_config.pod 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. =pod
  2. =head1 NAME
  3. fips_config - OpenSSL FIPS configuration
  4. =head1 DESCRIPTION
  5. A separate configuration file, using the OpenSSL L<config(5)> syntax,
  6. is used to hold information about the FIPS module. This includes a digest
  7. of the shared library file, and status about the self-testing.
  8. This data is used automatically by the module itself for two
  9. purposes:
  10. =over 4
  11. =item - Run the startup FIPS self-test known answer tests (KATS).
  12. This is normally done once, at installation time, but may also be set up to
  13. run each time the module is used.
  14. =item - Verify the module's checksum.
  15. This is done each time the module is used.
  16. =back
  17. This file is generated by the L<openssl-fipsinstall(1)> program, and
  18. used internally by the FIPS module during its initialization.
  19. The following options are supported. They should all appear in a section
  20. whose name is identified by the B<fips> option in the B<providers>
  21. section, as described in L<config(5)/Provider Configuration Module>.
  22. =over 4
  23. =item B<activate>
  24. If present, the module is activated. The value assigned to this name is not
  25. significant.
  26. =item B<install-version>
  27. A version number for the fips install process. Should be 1.
  28. =item B<conditional-errors>
  29. The FIPS module normally enters an internal error mode if any self test fails.
  30. Once this error mode is active, no services or cryptographic algorithms are
  31. accessible from this point on.
  32. Continuous tests are a subset of the self tests (e.g., a key pair test during key
  33. generation, or the CRNG output test).
  34. Setting this value to C<0> allows the error mode to not be triggered if any
  35. continuous test fails. The default value of C<1> will trigger the error mode.
  36. Regardless of the value, the operation (e.g., key generation) that called the
  37. continuous test will return an error code if its continuous test fails. The
  38. operation may then be retried if the error mode has not been triggered.
  39. =item B<security-checks>
  40. This indicates if run-time checks related to enforcement of security parameters
  41. such as minimum security strength of keys and approved curve names are used.
  42. A value of '1' will perform the checks, otherwise if the value is '0' the checks
  43. are not performed and FIPS compliance must be done by procedures documented in
  44. the relevant Security Policy.
  45. =item B<module-mac>
  46. The calculated MAC of the FIPS provider file.
  47. =item B<install-status>
  48. An indicator that the self-tests were successfully run.
  49. This should only be written after the module has
  50. successfully passed its self tests during installation.
  51. If this field is not present, then the self tests will run when the module
  52. loads.
  53. =item B<install-mac>
  54. A MAC of the value of the B<install-status> option, to prevent accidental
  55. changes to that value.
  56. It is written-to at the same time as B<install-status> is updated.
  57. =back
  58. For example:
  59. [fips_sect]
  60. activate = 1
  61. install-version = 1
  62. conditional-errors = 1
  63. security-checks = 1
  64. module-mac = 41:D0:FA:C2:5D:41:75:CD:7D:C3:90:55:6F:A4:DC
  65. install-mac = FE:10:13:5A:D3:B4:C7:82:1B:1E:17:4C:AC:84:0C
  66. install-status = INSTALL_SELF_TEST_KATS_RUN
  67. =head1 SEE ALSO
  68. L<config(5)>
  69. L<openssl-fipsinstall(1)>
  70. =head1 COPYRIGHT
  71. Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
  72. Licensed under the Apache License 2.0 (the "License"). You may not use
  73. this file except in compliance with the License. You can obtain a copy
  74. in the file LICENSE in the source distribution or at
  75. L<https://www.openssl.org/source/license.html>.
  76. =cut