summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-08-04 10:58:49 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-24 14:27:09 +0200
commit59026c7f679b8a32e41aaa910c1445e34562205b (patch)
tree95f662f468336f72f299ab89daf7daea053a301d /lib
parent5b1bd1963651b7fb78f4af06fba9455638eac53b (diff)
downloadgnutls-59026c7f679b8a32e41aaa910c1445e34562205b.tar.gz
pkcs12: increased the number of iterations for MAC
Diffstat (limited to 'lib')
-rw-r--r--lib/x509/pkcs12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c
index 00a3e7f055..7b63a5b43a 100644
--- a/lib/x509/pkcs12.c
+++ b/lib/x509/pkcs12.c
@@ -861,7 +861,7 @@ int gnutls_pkcs12_generate_mac(gnutls_pkcs12_t pkcs12, const char *pass)
{
uint8_t salt[8], key[20];
int result;
- const int iter = 1;
+ const int iter = 10*1024;
mac_hd_st td1;
gnutls_datum_t tmp = { NULL, 0 };
uint8_t sha_mac[20];