Navigation Menu

Skip to content

Commit

Permalink
v0.2b
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdankernel committed Apr 3, 2016
1 parent f9a357e commit 04042e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/threefish512.c
Expand Up @@ -2294,7 +2294,7 @@ static unsigned int __threefish512_encrypt(struct blkcipher_desc *desc,
nbytes -= bsize;
}

*(u64 *)walk->iv=be64_to_cpu(tweak);
*(u64 *)walk->iv=cpu_to_be64(tweak);
return nbytes;
}

Expand Down Expand Up @@ -2332,7 +2332,7 @@ static unsigned int __threefish512_decrypt(struct blkcipher_desc *desc,
nbytes -= bsize;
}

*(u64 *)walk->iv=be64_to_cpu(tweak);
*(u64 *)walk->iv=cpu_to_be64(tweak);
return nbytes;
}

Expand Down

0 comments on commit 04042e9

Please sign in to comment.