From d3fca54a7ea874604057a22ff608f666a9abc354 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 20 Dec 2021 13:49:08 -0800 Subject: [PATCH] dpp-util: pass actual ad_size, not hard coded '2'. --- 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;