From 81cf1ae38a9949d2776f4e65ac087b1b44fe052c Mon Sep 17 00:00:00 2001 From: Saksik Remy Date: Wed, 22 Dec 2021 15:16:08 +0800 Subject: [PATCH] fix alignment --- wolfcrypt/src/port/iotsafe/iotsafe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/port/iotsafe/iotsafe.c b/wolfcrypt/src/port/iotsafe/iotsafe.c index 78f051c48..6b3f8e5e2 100644 --- a/wolfcrypt/src/port/iotsafe/iotsafe.c +++ b/wolfcrypt/src/port/iotsafe/iotsafe.c @@ -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);