Skip to content

Commit 151129d

Browse files
tititiou36holtmann
authored andcommitted
Bluetooth: SMP: Fix SALT value in some comments
Salts are 16 bytes long. Remove some extra and erroneous '0' in the human readable format used in comments. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 8e5aa61 commit 151129d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/bluetooth/smp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ static void sc_generate_link_key(struct smp_chan *smp)
11451145
return;
11461146

11471147
if (test_bit(SMP_FLAG_CT2, &smp->flags)) {
1148-
/* SALT = 0x00000000000000000000000000000000746D7031 */
1148+
/* SALT = 0x000000000000000000000000746D7031 */
11491149
const u8 salt[16] = { 0x31, 0x70, 0x6d, 0x74 };
11501150

11511151
if (smp_h7(smp->tfm_cmac, smp->tk, salt, smp->link_key)) {
@@ -1203,7 +1203,7 @@ static void sc_generate_ltk(struct smp_chan *smp)
12031203
set_bit(SMP_FLAG_DEBUG_KEY, &smp->flags);
12041204

12051205
if (test_bit(SMP_FLAG_CT2, &smp->flags)) {
1206-
/* SALT = 0x00000000000000000000000000000000746D7032 */
1206+
/* SALT = 0x000000000000000000000000746D7032 */
12071207
const u8 salt[16] = { 0x32, 0x70, 0x6d, 0x74 };
12081208

12091209
if (smp_h7(smp->tfm_cmac, key->val, salt, smp->tk))

0 commit comments

Comments
 (0)