void Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out, const CAMELLIA_KEY *key, const int enc) { assert(in && out && key); assert((CAMELLIA_ENCRYPT == enc)||(CAMELLIA_DECRYPT == enc)); if (CAMELLIA_ENCRYPT == enc) Camellia_encrypt(in, out, key); else Camellia_decrypt(in, out, key); }
static void camellia_block_decrypt(pgp_crypt_t *crypt, void *out, const void *in) { Camellia_decrypt(in, out, crypt->decrypt_key); }