fix alignment

This commit is contained in:
Saksik Remy
2021-12-22 15:16:08 +08:00
parent c7fc0fac05
commit 81cf1ae38a

View File

@ -860,7 +860,7 @@ static int iotsafe_sign_hash(byte *privkey_idx, uint16_t id_size,
ret = BAD_FUNC_ARG;
} else if ((sig_hdr[0] == IOTSAFE_TAG_SIGNATURE_FIELD) &&
(sig_hdr[1] == 0) &&
(sig_hdr[2] == 2 * IOTSAFE_ECC_KSIZE)) {
(sig_hdr[2] == 2 * IOTSAFE_ECC_KSIZE)) {
XSTRNCPY(R, resp + 6, IOTSAFE_ECC_KSIZE * 2);
XSTRNCPY(S, resp + 6 + IOTSAFE_ECC_KSIZE * 2,
IOTSAFE_ECC_KSIZE * 2);