From a3e36dd8f43a5c06969ae158fa54fbc649f44d03 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 12 Aug 2019 18:56:35 +0200 Subject: [PATCH] s4:samdb: Use generate_nonce_buffer() for AEC GCM nonce Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy --- source4/dsdb/samdb/ldb_modules/encrypted_secrets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c b/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c index b2df15c08f4..deaa03cbb35 100644 --- a/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c +++ b/source4/dsdb/samdb/ldb_modules/encrypted_secrets.c @@ -447,7 +447,7 @@ static struct ldb_val samba_encrypt_aead(int *err, goto error_exit; } - generate_random_buffer(iv, AES_GCM_128_IV_SIZE); + generate_nonce_buffer(iv, AES_GCM_128_IV_SIZE); es->iv.length = AES_GCM_128_IV_SIZE; es->iv.data = iv; -- 2.11.4.GIT