forked from wolfSSL/wolfssl
mdk5 error
This commit is contained in:
committed by
Takashi Kojo
parent
f49bd43ba1
commit
28e18e35f8
@ -1598,10 +1598,11 @@ int wc_CamelliaDecryptDirect(Camellia* cam, byte* out, const byte* in)
|
||||
|
||||
int wc_CamelliaCbcEncrypt(Camellia* cam, byte* out, const byte* in, word32 sz)
|
||||
{
|
||||
word32 blocks;
|
||||
if (cam == NULL || out == NULL || in == NULL) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
word32 blocks = sz / CAMELLIA_BLOCK_SIZE;
|
||||
blocks = sz / CAMELLIA_BLOCK_SIZE;
|
||||
|
||||
while (blocks--) {
|
||||
xorbuf((byte*)cam->reg, in, CAMELLIA_BLOCK_SIZE);
|
||||
@ -1619,10 +1620,11 @@ int wc_CamelliaCbcEncrypt(Camellia* cam, byte* out, const byte* in, word32 sz)
|
||||
|
||||
int wc_CamelliaCbcDecrypt(Camellia* cam, byte* out, const byte* in, word32 sz)
|
||||
{
|
||||
word32 blocks;
|
||||
if (cam == NULL || out == NULL || in == NULL) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
word32 blocks = sz / CAMELLIA_BLOCK_SIZE;
|
||||
blocks = sz / CAMELLIA_BLOCK_SIZE;
|
||||
|
||||
while (blocks--) {
|
||||
XMEMCPY(cam->tmp, in, CAMELLIA_BLOCK_SIZE);
|
||||
|
Reference in New Issue
Block a user