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
LSH
lsh
Commits
55258cd2
Commit
55258cd2
authored
Jun 12, 2001
by
Niels Möller
Browse files
* des.c (des_encrypt, des_decrypt): Assert that the key setup was
successful. Rev: src/nettle/des.c:1.2
parent
ac505b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nettle/des.c
View file @
55258cd2
...
...
@@ -209,7 +209,8 @@ des_encrypt(struct des_ctx *ctx,
const
uint8_t
*
src
)
{
assert
(
!
(
length
%
DES_BLOCK_SIZE
));
assert
(
ctx
->
status
==
DES_OK
);
while
(
length
)
{
DesSmallFipsEncrypt
(
dst
,
ctx
->
key
,
src
);
...
...
@@ -225,6 +226,7 @@ des_decrypt(struct des_ctx *ctx,
const
uint8_t
*
src
)
{
assert
(
!
(
length
%
DES_BLOCK_SIZE
));
assert
(
ctx
->
status
==
DES_OK
);
while
(
length
)
{
...
...
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