Skip to content

Commit

Permalink
fixing broken camellia
Browse files Browse the repository at this point in the history
  • Loading branch information
Karel Miko committed Oct 20, 2013
1 parent 012a40b commit 50ad0dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ltc/ciphers/camellia.c
Expand Up @@ -619,10 +619,10 @@ int camellia_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_k
L ^= F(R ^ skey->camellia.k[1]);
R ^= F(L ^ skey->camellia.k[0]);

L ^= skey->camellia.kw[1];
R ^= skey->camellia.kw[0];
R ^= skey->camellia.kw[1];
L ^= skey->camellia.kw[0];

STORE64H(R, pt+0); STORE64H(L, pt+8);
STORE64H(R, pt+8); STORE64H(L, pt+0);

return CRYPT_OK;
}
Expand Down

0 comments on commit 50ad0dd

Please sign in to comment.