From b8f8692dc1638c98ba5b1aa3314df9f0bf511246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 21 Oct 2014 10:10:21 +0200 Subject: [PATCH] Nettle.DES: Added notes about some temporary leaks. --- src/post_modules/Nettle/cipher.cmod | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/post_modules/Nettle/cipher.cmod b/src/post_modules/Nettle/cipher.cmod index b33922a827..25cc7b22e5 100644 --- a/src/post_modules/Nettle/cipher.cmod +++ b/src/post_modules/Nettle/cipher.cmod @@ -5281,6 +5281,10 @@ PIKECLASS DES assert(info); #ifndef DES_WEAK_KEY + /* NB: This loop temporarily leaks strings on the stack, + * but we don't care, as it is a low probability, + * and they will be cleaned up on return. + */ do { low_make_key(info->meta->key_size); f_Nettle_DES_fix_parity(1); @@ -5521,6 +5525,10 @@ PIKECLASS DES3 assert(info); #ifndef DES_WEAK_KEY + /* NB: This loop temporarily leaks strings on the stack, + * but we don't care, as it is a low probability, + * and they will be cleaned up on return. + */ do { low_make_key(info->meta->key_size); f_Nettle_DES3_fix_parity(1); -- GitLab