brought the camellia interface to match AES's more

This commit is contained in:
John Safranek
2013-01-18 09:57:41 -08:00
parent d5bf944630
commit f65b0fc092
3 changed files with 61 additions and 15 deletions
+2 -4
View File
@@ -1838,10 +1838,8 @@ int camellia_test(void)
testVectors[i].iv, CAMELLIA_DECRYPTION);
if (testVectors[i].type == CAM_ECB) {
CamelliaEncrypt(&enc, c, testVectors[i].plaintext,
CAMELLIA_BLOCK_SIZE);
CamelliaDecrypt(&dec, p, testVectors[i].ciphertext,
CAMELLIA_BLOCK_SIZE);
CamelliaEncryptDirect(&enc, c, testVectors[i].plaintext);
CamelliaDecryptDirect(&dec, p, testVectors[i].ciphertext);
}
else {
CamelliaCbcEncrypt(&enc, c, testVectors[i].plaintext,