summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-20 13:13:11 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-20 13:13:41 +0100
commit60c96534b5405b73ed1224f3e8ff3c0a3ca73f2e (patch)
tree61fb9fa6a34a184dc9c1ee37ee28effbec59dafd
parentde2d1d2c512ffd866fcbd4a016026f8039e8e7a4 (diff)
downloadgnutls-60c96534b5405b73ed1224f3e8ff3c0a3ca73f2e.tar.gz
nettle/pk: use nonce level for RSA padding
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/nettle/pk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c
index b8a2f42eaf..0bbe45f126 100644
--- a/lib/nettle/pk.c
+++ b/lib/nettle/pk.c
@@ -1,6 +1,7 @@
/*
* Copyright (C) 2010-2012 Free Software Foundation, Inc.
- * Copyright (C) 2013-2015 Nikos Mavrogiannopoulos
+ * Copyright (C) 2013-2017 Nikos Mavrogiannopoulos
+ * Copyright (C) 2016-2017 Red Hat, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
@@ -368,7 +369,7 @@ _wrap_nettle_pk_encrypt(gnutls_pk_algorithm_t algo,
}
ret =
- rsa_encrypt(&pub, NULL, rnd_tmpkey_func,
+ rsa_encrypt(&pub, NULL, rnd_nonce_func,
plaintext->size, plaintext->data,
p);
if (ret == 0 || HAVE_LIB_ERROR()) {