Diff between 2e8cd0bff45e22890623c92708091f6b03c264d8 and 26304dcc445016e00fd497e8d5e8c68979759eab
Changed Files
| File | Additions | Deletions | Status |
| android/gatt.c | +3 | -2 | modified |
Full Patch
diff --git a/android/gatt.c b/android/gatt.c
index d11298f..e9d8093 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -5075,8 +5075,9 @@ static void write_signed_cmd_request(const uint8_t *cmd, uint16_t cmd_len,
}
/* Generate signature and verify it */
- if (!bt_crypto_sign_att(crypto, csrk, value, vlen, sign_cnt,
- t)) {
+ if (!bt_crypto_sign_att(crypto, csrk, cmd,
+ cmd_len - ATT_SIGNATURE_LEN,
+ sign_cnt, t)) {
error("gatt: Error when generating att signature");
return;
}