Diff between 40f45cf4c4452ea4f0f7d1f4840323f674c99187 and 99f85c8c05c4802b641e5bfa6ae6f153f11cb9c0

Changed Files

File Additions Deletions Status
src/shared/crypto.c +2 -2 modified

Full Patch

diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index c54a17d..cc7536a 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
@@ -463,8 +463,8 @@ bool bt_crypto_s1(struct bt_crypto *crypto, const uint8_t k[16],
 			const uint8_t r1[16], const uint8_t r2[16],
 			uint8_t res[16])
 {
-	memcpy(res, r1 + 8, 8);
-	memcpy(res + 8, r2 + 8, 8);
+	memcpy(res, r2, 8);
+	memcpy(res + 8, r1, 8);
 
 	return bt_crypto_e(crypto, k, res, res);
 }