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
Marcus Hoffmann
nettle
Commits
072dd6ef
Commit
072dd6ef
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
e62872fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
des.c
View file @
072dd6ef
...
...
@@ -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