From 52f296b7e21176cd12ec5e7848b0983bf6bac0f7 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 22 Apr 2022 22:20:36 +0100 Subject: [PATCH] ntru.c: fix benign paste error. smemclr(array, ... * sizeof(*different_array)) was not what I meant to do, even though the two arrays have the same element size. --- crypto/ntru.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/ntru.c b/crypto/ntru.c index ca58bacd..9cc11c80 100644 --- a/crypto/ntru.c +++ b/crypto/ntru.c @@ -395,9 +395,9 @@ unsigned ntru_ring_invert(uint16_t *out, const uint16_t *in, sfree(A); smemclr(B, SIZE * sizeof(*B)); sfree(B); - smemclr(Ac, SIZE * sizeof(*A)); + smemclr(Ac, SIZE * sizeof(*Ac)); sfree(Ac); - smemclr(Bc, SIZE * sizeof(*B)); + smemclr(Bc, SIZE * sizeof(*Bc)); sfree(Bc); return success;