From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 2/9] dpp-util: pass actual ad_size, not hard coded '2'.
Date: Mon, 20 Dec 2021 13:49:08 -0800 [thread overview]
Message-ID: <20211220214915.34093-2-prestwoj@gmail.com> (raw)
In-Reply-To: 20211220214915.34093-1-prestwoj@gmail.com
[-- 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
reply other threads:[~2021-12-20 21:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211220214915.34093-2-prestwoj@gmail.com \
--to=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox