summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-08-12 18:56:35 +0200
committerAlexander Bokovoy <ab@samba.org>2019-08-14 15:07:24 +0000
commita3e36dd8f43a5c06969ae158fa54fbc649f44d03 (patch)
treee9873952afbf9de6e7237c6ce77ddaac76cb9027
parent93196dd823e114f260a68d28bb59eac3909c30d8 (diff)
downloadsamba-a3e36dd8f43a5c06969ae158fa54fbc649f44d03.tar.gz
s4:samdb: Use generate_nonce_buffer() for AEC GCM nonce
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
-rw-r--r--source4/dsdb/samdb/ldb_modules/encrypted_secrets.c2
1 files changed, 1 insertions, 1 deletions
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;