diff options
author | Daiki Ueno <ueno@gnu.org> | 2021-12-20 16:34:30 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2022-01-07 17:45:14 +0100 |
commit | e140a0d09a193ac0e015c1c91f79f081ccb9d5d1 (patch) | |
tree | 49814e809826c97d382b05f6a8a448a18bd6b3ec /lib | |
parent | 455522d71a147dfc71ce32ad2094e8da7de1252a (diff) | |
download | gnutls-e140a0d09a193ac0e015c1c91f79f081ccb9d5d1.tar.gz |
pkcs12: determine iteration count for MAC at build time
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/x509/pkcs12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c index 504d3c31a8..0cdb9b09de 100644 --- a/lib/x509/pkcs12.c +++ b/lib/x509/pkcs12.c @@ -900,7 +900,7 @@ int gnutls_pkcs12_generate_mac2(gnutls_pkcs12_t pkcs12, gnutls_mac_algorithm_t m { uint8_t salt[8], key[MAX_HASH_SIZE]; int result; - const int iter = 10*1024; + const int iter = PKCS12_ITER_COUNT; mac_hd_st td1; gnutls_datum_t tmp = { NULL, 0 }; unsigned mac_size, key_len; |