Return-Path: From: Lukasz Rymanowski To: linux-bluetooth@vger.kernel.org Cc: johan.hedberg@gmail.com, szymon.janc@tieto.com, Lukasz Rymanowski Subject: [PATCH v2 05/10] shared/crypto: Fix byte order of sign counter added to signature Date: Thu, 29 May 2014 15:49:39 +0200 Message-Id: <1401371384-10427-6-git-send-email-lukasz.rymanowski@tieto.com> In-Reply-To: <1401371384-10427-1-git-send-email-lukasz.rymanowski@tieto.com> References: <1401371384-10427-1-git-send-email-lukasz.rymanowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- src/shared/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 1.8.4