Skip to content
Snippets Groups Projects
Commit af9fb1cd authored by Niels Möller's avatar Niels Möller
Browse files

* des-compat.c (des_cbc_cksum): Bug fix, local variable was

declared in the middle of a block.

Rev: src/nettle/des-compat.c:1.6
parent 6aa9a064
Branches
Tags
No related merge requests found
......@@ -76,10 +76,10 @@ des_cbc_cksum(des_cblock *src, des_cblock *dst,
* work, in particular what it should return, and if iv can be
* modified. */
uint8_t block[DES_BLOCK_SIZE];
memcpy(block, *iv, DES_BLOCK_SIZE);
uint8_t *p;
memcpy(block, *iv, DES_BLOCK_SIZE);
assert(!(length % DES_BLOCK_SIZE));
for (p = *src; length; length -= DES_BLOCK_SIZE, p += DES_BLOCK_SIZE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment