2019-10-04 07:38:17 +08:00
|
|
|
/*
|
2021-04-08 20:04:41 +08:00
|
|
|
* Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2019-10-04 07:38:17 +08:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "pbkdf2.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For backwards compatibility reasons,
|
|
|
|
* Extra checks are done by default in fips mode only.
|
|
|
|
*/
|
2020-04-14 04:34:56 +08:00
|
|
|
#ifdef FIPS_MODULE
|
2021-02-25 07:08:54 +08:00
|
|
|
const int ossl_kdf_pbkdf2_default_checks = 1;
|
2019-10-04 07:38:17 +08:00
|
|
|
#else
|
2021-02-25 07:08:54 +08:00
|
|
|
const int ossl_kdf_pbkdf2_default_checks = 0;
|
2020-04-14 04:34:56 +08:00
|
|
|
#endif /* FIPS_MODULE */
|