Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
72c02ff3
Commit
72c02ff3
authored
Nov 25, 2018
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ChangeLog entry, and minor comment fixes
parent
01fa621a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ChangeLog
ChangeLog
+3
-0
pkcs1-sec-decrypt.c
pkcs1-sec-decrypt.c
+2
-2
No files found.
ChangeLog
View file @
72c02ff3
...
...
@@ -13,6 +13,9 @@
2018-11-08 Simo Sorce <simo@redhat.com>
* 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.
...
...
pkcs1-sec-decrypt.c
View file @
72c02ff3
...
...
@@ -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 e
ax
ctly 'offset' bytes. */
* that the buffer is shifted left e
xa
ctly '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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment