From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v2 2/6] advertising: Use bt_crypto_rsi to generate RSI
Date: Thu, 15 Jan 2026 15:54:03 -0500 [thread overview]
Message-ID: <20260115205408.1554101-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20260115205408.1554101-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This makes use of bt_crypto_rsi to generate a valid RSI.
---
src/advertising.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/advertising.c b/src/advertising.c
index ebdefcdb0586..5dc33c004f93 100644
--- a/src/advertising.c
+++ b/src/advertising.c
@@ -526,11 +526,7 @@ static bool set_rsi(struct btd_adv_client *client)
if (!crypto)
return false;
- ret = bt_crypto_random_bytes(crypto, data + 3, sizeof(data) - 3);
- if (!ret)
- goto done;
-
- ret = bt_crypto_sih(crypto, btd_opts.csis.sirk, data + 3, data);
+ ret = bt_crypto_rsi(crypto, btd_opts.csis.sirk, data);
if (!ret)
goto done;
--
2.52.0
next prev parent reply other threads:[~2026-01-15 20:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 20:54 [PATCH BlueZ v2 1/6] shared/crypto: Add bt_crypto_rsi Luiz Augusto von Dentz
2026-01-15 20:54 ` Luiz Augusto von Dentz [this message]
2026-01-15 20:54 ` [PATCH BlueZ v2 3/6] advtest: Use bt_crypto_rsi to generate RSI Luiz Augusto von Dentz
2026-01-15 20:54 ` [PATCH BlueZ v2 4/6] shared/ad: Make bt_ad_has_data return the data Luiz Augusto von Dentz
2026-01-15 20:54 ` [PATCH BlueZ v2 5/6] advertising: Fix not verifying if RSI set is valid Luiz Augusto von Dentz
2026-01-15 20:54 ` [PATCH BlueZ v2 6/6] advtest: Fix displaying RSI as a byte array rather then an address Luiz Augusto von Dentz
2026-01-15 21:48 ` [BlueZ,v2,1/6] shared/crypto: Add bt_crypto_rsi bluez.test.bot
2026-01-15 22:40 ` [PATCH BlueZ v2 1/6] " patchwork-bot+bluetooth
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=20260115205408.1554101-2-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/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