aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/cipher.c b/g10/cipher.c
index c0f10ff19..162bbc35f 100644
--- a/g10/cipher.c
+++ b/g10/cipher.c
@@ -69,7 +69,7 @@ write_header( cipher_filter_context_t *cfx, IOBUF a )
if( blocksize < 8 || blocksize > 16 )
log_fatal("unsupported blocksize %d\n", blocksize );
nprefix = blocksize;
- randomize_buffer( temp, nprefix, 1 );
+ gcry_randomize( temp, nprefix, GCRY_STRONG_RANDOM );
temp[nprefix] = temp[nprefix-2];
temp[nprefix+1] = temp[nprefix-1];
print_cipher_algo_note( cfx->dek->algo );