Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
a88b7c4f
Commit
a88b7c4f
authored
Sep 09, 2001
by
Niels Möller
Browse files
* cbc.c (cbc_encrypt): Bug fix, encrypt block *after* XOR:ing the
iv. Rev: src/nettle/cbc.c:1.4
parent
18eaed2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cbc.c
View file @
a88b7c4f
...
...
@@ -44,7 +44,7 @@ cbc_encrypt(void *ctx, void (*f)(void *ctx,
for
(
;
length
;
length
-=
block_size
,
src
+=
block_size
,
dst
+=
block_size
)
{
memxor
(
iv
,
src
,
block_size
);
f
(
ctx
,
block_size
,
dst
,
src
);
f
(
ctx
,
block_size
,
dst
,
iv
);
memcpy
(
iv
,
dst
,
block_size
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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