diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-12-29 05:04:10 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-30 01:30:18 -0500 |
commit | 4da50de895588a0268b636314d7c1d08f18b20c9 (patch) | |
tree | 152b28dbc4fc2ac6fc5d216edf4fe275e39ff1a9 /net/bluetooth | |
parent | 7fc1b2d56f399f65e96559fe449c0ca09d2c36c7 (diff) |
Bluetooth: Fix const declarations for smp_f5 and smp_f6
These SMP crypto functions should have all their input parameters
declared as const. This patch fixes the parameters that were missing the
const declaration.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/smp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index b67749bb55bf..9025e177d278 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c | |||
@@ -223,8 +223,9 @@ static int smp_f4(struct crypto_hash *tfm_cmac, const u8 u[32], const u8 v[32], | |||
223 | return err; | 223 | return err; |
224 | } | 224 | } |
225 | 225 | ||
226 | static int smp_f5(struct crypto_hash *tfm_cmac, u8 w[32], u8 n1[16], u8 n2[16], | 226 | static int smp_f5(struct crypto_hash *tfm_cmac, const u8 w[32], |
227 | u8 a1[7], u8 a2[7], u8 mackey[16], u8 ltk[16]) | 227 | const u8 n1[16], const u8 n2[16], const u8 a1[7], |
228 | const u8 a2[7], u8 mackey[16], u8 ltk[16]) | ||
228 | { | 229 | { |
229 | /* The btle, salt and length "magic" values are as defined in | 230 | /* The btle, salt and length "magic" values are as defined in |
230 | * the SMP section of the Bluetooth core specification. In ASCII | 231 | * the SMP section of the Bluetooth core specification. In ASCII |
@@ -276,7 +277,7 @@ static int smp_f5(struct crypto_hash *tfm_cmac, u8 w[32], u8 n1[16], u8 n2[16], | |||
276 | } | 277 | } |
277 | 278 | ||
278 | static int smp_f6(struct crypto_hash *tfm_cmac, const u8 w[16], | 279 | static int smp_f6(struct crypto_hash *tfm_cmac, const u8 w[16], |
279 | const u8 n1[16], u8 n2[16], const u8 r[16], | 280 | const u8 n1[16], const u8 n2[16], const u8 r[16], |
280 | const u8 io_cap[3], const u8 a1[7], const u8 a2[7], | 281 | const u8 io_cap[3], const u8 a1[7], const u8 a2[7], |
281 | u8 res[16]) | 282 | u8 res[16]) |
282 | { | 283 | { |