summaryrefslogtreecommitdiff
path: root/pkcs1-sec-decrypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2018-11-25 16:47:23 +0100
committerNiels Möller <nisse@lysator.liu.se>2018-11-25 16:47:23 +0100
commit72c02ff335edd90f35a83a44031ad15ca583a927 (patch)
treed1b9208e62074a73580bbe081094504f08dc0fb2 /pkcs1-sec-decrypt.c
parent01fa621a419e660cc8ab0c36c071cec4298273a0 (diff)
downloadnettle-72c02ff335edd90f35a83a44031ad15ca583a927.tar.gz
ChangeLog entry, and minor comment fixes
Diffstat (limited to 'pkcs1-sec-decrypt.c')
-rw-r--r--pkcs1-sec-decrypt.c4
1 files changed, 2 insertions, 2 deletions
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);
}