summaryrefslogtreecommitdiff
path: root/lib/x509
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2021-12-20 16:13:06 +0100
committerDaiki Ueno <ueno@gnu.org>2022-01-07 17:45:14 +0100
commit455522d71a147dfc71ce32ad2094e8da7de1252a (patch)
tree9c299ceec30ecdd18c22f9a1252a0c7d6966e0f2 /lib/x509
parentf56736cd3e1f940140f628f42ccec0481ff1de31 (diff)
downloadgnutls-455522d71a147dfc71ce32ad2094e8da7de1252a.tar.gz
pkcs7: determine iteration count for PBKDF2 at build time
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/x509')
-rw-r--r--lib/x509/pkcs7-crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/pkcs7-crypt.c b/lib/x509/pkcs7-crypt.c
index 7c153c051e..c1e7bef21c 100644
--- a/lib/x509/pkcs7-crypt.c
+++ b/lib/x509/pkcs7-crypt.c
@@ -1552,7 +1552,7 @@ _gnutls_pkcs_generate_key(schema_id schema,
goto cleanup;
}
- kdf_params->iter_count = 5 * 1024 + rnd[0];
+ kdf_params->iter_count = PKCS12_ITER_COUNT;
key->size = kdf_params->key_size =
gnutls_cipher_get_key_size(enc_params->cipher);