From 949c1ba6284ba2888a0b9e675e95a341296efcbf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 23 Feb 2018 00:14:39 -0500 Subject: [PATCH] se: Correct variable identifiers in se_synchronous_exp_mod --- exosphere/se.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exosphere/se.c b/exosphere/se.c index 11059f178..cece93c88 100644 --- a/exosphere/se.c +++ b/exosphere/se.c @@ -313,8 +313,8 @@ void se_synchronous_exp_mod(unsigned int keyslot, void *dst, size_t dst_size, co } /* Endian swap the input. */ - for (size_t i = size; i > 0; i--) { - stack_buf[i] = *((uint8_t *)buf + size - i); + for (size_t i = src_size; i > 0; i--) { + stack_buf[i] = *((uint8_t *)src + src_size - i); } SECURITY_ENGINE->CONFIG_REG = (ALG_RSA | DST_RSAREG);