Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Michael Weiser
nettle
Commits
f3bbc422
Commit
f3bbc422
authored
Aug 09, 2018
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
des-compat.c: Change length argument type from uint32_t to size_t.
parent
cb88cdbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ChangeLog
ChangeLog
+5
-0
des-compat.c
des-compat.c
+2
-2
No files found.
ChangeLog
View file @
f3bbc422
2018-08-09 Niels Möller <nisse@lysator.liu.se>
* des-compat.c (des_compat_des3_encrypt)
(des_compat_des3_decrypt): Change length argument type to size_t.
2018-08-08 Niels Möller <nisse@lysator.liu.se>
* nettle.texinfo (Compatibility): New section on ABI and API
...
...
des-compat.c
View file @
f3bbc422
...
...
@@ -48,7 +48,7 @@ struct des_compat_des3 { const struct des_ctx *keys[3]; };
static
void
des_compat_des3_encrypt
(
struct
des_compat_des3
*
ctx
,
uint32
_t
length
,
uint8_t
*
dst
,
const
uint8_t
*
src
)
size
_t
length
,
uint8_t
*
dst
,
const
uint8_t
*
src
)
{
nettle_des_encrypt
(
ctx
->
keys
[
0
],
length
,
dst
,
src
);
nettle_des_decrypt
(
ctx
->
keys
[
1
],
length
,
dst
,
dst
);
...
...
@@ -57,7 +57,7 @@ des_compat_des3_encrypt(struct des_compat_des3 *ctx,
static
void
des_compat_des3_decrypt
(
struct
des_compat_des3
*
ctx
,
uint32
_t
length
,
uint8_t
*
dst
,
const
uint8_t
*
src
)
size
_t
length
,
uint8_t
*
dst
,
const
uint8_t
*
src
)
{
nettle_des_decrypt
(
ctx
->
keys
[
2
],
length
,
dst
,
src
);
nettle_des_encrypt
(
ctx
->
keys
[
1
],
length
,
dst
,
dst
);
...
...
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