From 2de261c2de8c6ff670618c10b392d7ca38cebb1a Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 9 Dec 2020 12:10:46 -0600 Subject: [PATCH] sp_int.c: fix typos in _sp_mul_4() and _sp_sqr_4(). --- wolfcrypt/src/sp_int.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index d869e0c23..8879f66a8 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -4829,7 +4829,7 @@ int sp_mod(sp_int* a, sp_int* m, sp_int* r) sp_int_digit* db = b->dp; #ifdef WOLFSSL_SMALL_STACK - w = (sp_int_word*)XMALLOC(sizeof(sp_word) * 16, NULL, + w = (sp_int_word*)XMALLOC(sizeof(sp_int_word) * 16, NULL, DYNAMIC_TYPE_BIGINT); if (w == NULL) { err = MP_MEM; @@ -9540,7 +9540,7 @@ int sp_mul_2d(sp_int* a, int e, sp_int* r) sp_int_digit* da = a->dp; #ifdef WOLFSSL_SMALL_STACK - w = (sp_int_word*)XMALLOC(sizeof(sp_word) * 10, NULL, + w = (sp_int_word*)XMALLOC(sizeof(sp_int_word) * 10, NULL, DYNAMIC_TYPE_BIGINT); if (w == NULL) { err = MP_MEM;