From: Niels Möller Date: Sun, 25 Nov 2018 15:47:23 +0000 (+0100) Subject: ChangeLog entry, and minor comment fixes X-Git-Tag: nettle_3.4.1rc1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72c02ff335edd90f35a83a44031ad15ca583a927;p=thirdparty%2Fnettle.git ChangeLog entry, and minor comment fixes --- diff --git a/ChangeLog b/ChangeLog index 705dfd95..2b7dac88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ 2018-11-08 Simo Sorce + * pkcs1-sec-decrypt.c (_pkcs1_sec_decrypt_variable): New private + function. Variable size version for backwards compatibility. + * testsuite/rsa-sec-decrypt-test.c: Adds more tests. * rsa-sec-decrypt.c (rsa_sec_decrypt): New function. diff --git a/pkcs1-sec-decrypt.c b/pkcs1-sec-decrypt.c index 802fb3e7..722044b0 100644 --- a/pkcs1-sec-decrypt.c +++ b/pkcs1-sec-decrypt.c @@ -135,10 +135,10 @@ _pkcs1_sec_decrypt_variable(size_t *length, uint8_t *message, offset -= shift; /* In this loop, the bits of the 'offset' variable are used as shifting * conditions, starting from the least significant bit. The end result is - * that the buffer is shifted left eaxctly 'offset' bytes. */ + * that the buffer is shifted left exactly 'offset' bytes. */ for (shift = 1; shift < buflen; shift <<= 1, offset >>= 1) { - /* 'ok' is both the a least significant bit mask and a condition */ + /* 'ok' is both a least significant bit mask and a condition */ cnd_memcpy(offset & ok, message, message + shift, buflen - shift); }