Commit: 87f79a9c7df88df6147e76db77c3a81c002ad7e6
Parent: 567d19e472a19a3c0960bfc61930b34fb1e57a8d
Author: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-05-26 11:27:21
Tree: 8ab0cbc444ede4d9fc2dd24112f24f6e370e1eea

shared/crypto: Extend bt_crypto_sign_att with sign counter Sign counter is use in two places during att signing: 1) Shall be concatenated with message to be sign as specified in BT spec 4.1, Vol[3], Part H, chapter 2.4.5 2) Shall be a part of signature send in the att packet as specified in BT spec 4.1 Vol[3], Part C, chapter 10.4.1 With this patch, bt_crypto_sign_att returns signature as specified in 2) This patch also updates unit tests so now it uses sign counter 0. Note that test vectors no longer match that one from NIST Special Publication 800-38B

Diffstat

M src/shared/crypto.c | 21 ++++++++++++++++++- - -
M src/shared/crypto.h | 4 ++- -
M unit/test-crypto.c | 10 +++++- - - - -

3 files changed, 25 insertions(+), 10 deletions(-)

View Full Diff | Patch