Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing broken camellia

  • Loading branch information...
commit 45dcbc654d5867bb5ee475b9b1be0b2c3959d0de 1 parent d2c1329
Karel Miko authored sjaeckel committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ciphers/camellia.c
View
6 src/ciphers/camellia.c
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.