From: Thomas Pornin Date: Thu, 24 May 2018 13:26:43 +0000 (+0200) Subject: Small typo fixes (harmless). X-Git-Tag: v0.6~11 X-Git-Url: https://bearssl.org/gitweb//home/git/?a=commitdiff_plain;h=a8a8f51ea4f59b9344d26a323f1fb737984a4dca;p=BearSSL Small typo fixes (harmless). --- diff --git a/src/int/i31_montmul.c b/src/int/i31_montmul.c index b953aa3..8066808 100644 --- a/src/int/i31_montmul.c +++ b/src/int/i31_montmul.c @@ -34,7 +34,7 @@ br_i31_montymul(uint32_t *d, const uint32_t *x, const uint32_t *y, len = (m[0] + 31) >> 5; len4 = len & ~(size_t)3; - br_i32_zero(d, m[0]); + br_i31_zero(d, m[0]); dh = 0; for (u = 0; u < len; u ++) { uint32_t f, xu; diff --git a/src/rsa/rsa_oaep_unpad.c b/src/rsa/rsa_oaep_unpad.c index e172a35..7c4be6a 100644 --- a/src/rsa/rsa_oaep_unpad.c +++ b/src/rsa/rsa_oaep_unpad.c @@ -138,7 +138,7 @@ br_rsa_oaep_unpad(const br_hash_class *dig, plen = 2 + hlen + zlen; k -= plen; - memmove(data, data + plen, k); + memmove(buf, buf + plen, k); *len = k; } return s;