public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 2/9] dpp-util: pass actual ad_size, not hard coded '2'.
@ 2021-12-20 21:49 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2021-12-20 21:49 UTC (permalink / raw)
  To: iwd 

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

---
 src/dpp-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dpp-util.c b/src/dpp-util.c
index 5e8ab2a7..1db38cfb 100644
--- a/src/dpp-util.c
+++ b/src/dpp-util.c
@@ -280,7 +280,7 @@ uint8_t *dpp_unwrap_attr(const void *ad0, size_t ad0_len, const void *ad1,
 
 	unwrapped = l_malloc(wrapped_len - 16);
 
-	if (!aes_siv_decrypt(key, key_len, wrapped, wrapped_len, ad, 2,
+	if (!aes_siv_decrypt(key, key_len, wrapped, wrapped_len, ad, ad_size,
 				unwrapped)) {
 		l_free(unwrapped);
 		return NULL;
-- 
2.31.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-20 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-20 21:49 [PATCH 2/9] dpp-util: pass actual ad_size, not hard coded '2' James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox