30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 3a22faf5aa81b8a2e918e250cb201440094f9757 Mon Sep 17 00:00:00 2001
|
|
From: Andreas Schneider <asn@samba.org>
|
|
Date: Mon, 12 Aug 2019 18:56:35 +0200
|
|
Subject: [PATCH 081/187] 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>
|
|
(cherry picked from commit a3e36dd8f43a5c06969ae158fa54fbc649f44d03)
|
|
---
|
|
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.23.0
|
|
|