Beispiel #1
0
void Camellia_EncryptBlock(int keyBitLength, const u8 plaintext[],
                           const KEY_TABLE_TYPE keyTable, u8 ciphertext[])
{
    Camellia_EncryptBlock_Rounds(keyBitLength == 128 ? 3 : 4,
                                 plaintext, keyTable, ciphertext);
}
Beispiel #2
0
void
Camellia_encrypt(const unsigned char *in, unsigned char *out,
    const CAMELLIA_KEY *key)
{
	Camellia_EncryptBlock_Rounds(key->grand_rounds, in, key->u.rd_key, out);
}