Diff between 8b4d1ea5412fc0c3eb8c45f099fcdb2860046f4e and 067050b2ebc1dc61d28ff01f8e5455947a57d01e

Changed Files

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

Full Patch

diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index b50baa5..d4c4cc7 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
@@ -301,7 +301,7 @@ bool bt_crypto_sign_att(struct bt_crypto *crypto, const uint8_t key[16],
 	 * As to BT spec. 4.1 Vol[3], Part C, chapter 10.4.1 sign counter should
 	 * be placed in the signature
 	 */
-	put_le32(sign_cnt, out + 8);
+	put_be32(sign_cnt, out + 8);
 
 	/*
 	 * The most significant octet of hash corresponds to out[0]  - swap it.