From: Hugo Landau Date: Wed, 16 Mar 2022 16:32:08 +0000 (+0000) Subject: Fix declaration inconsistency (Camellia) X-Git-Tag: openssl-3.2.0-alpha1~2837 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12a71fafbe9b0ce90a51098fbf166d9da62b111;p=thirdparty%2Fopenssl.git Fix declaration inconsistency (Camellia) Fixes #17911. Reviewed-by: Tomas Mraz Reviewed-by: Richard Levitte Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17912) --- diff --git a/crypto/camellia/camellia.c b/crypto/camellia/camellia.c index dcdff810e36..fc6e84fd436 100644 --- a/crypto/camellia/camellia.c +++ b/crypto/camellia/camellia.c @@ -499,9 +499,9 @@ void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[], PUTU32(plaintext + 12, s1); } -void Camellia_DecryptBlock(int keyBitLength, const u8 plaintext[], - const KEY_TABLE_TYPE keyTable, u8 ciphertext[]) +void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[], + const KEY_TABLE_TYPE keyTable, u8 plaintext[]) { Camellia_DecryptBlock_Rounds(keyBitLength == 128 ? 3 : 4, - plaintext, keyTable, ciphertext); + ciphertext, keyTable, plaintext); }