2
0

pbkdf2_fips.c 602 B

1234567891011121314151617181920
  1. /*
  2. * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include "pbkdf2.h"
  10. /*
  11. * For backwards compatibility reasons,
  12. * Extra checks are done by default in fips mode only.
  13. */
  14. #ifdef FIPS_MODULE
  15. const int ossl_kdf_pbkdf2_default_checks = 1;
  16. #else
  17. const int ossl_kdf_pbkdf2_default_checks = 0;
  18. #endif /* FIPS_MODULE */