54 #ifndef WOLF_CRYPT_CAMELLIA_H 55 #define WOLF_CRYPT_CAMELLIA_H 66 CAMELLIA_BLOCK_SIZE = 16
69 #define CAMELLIA_TABLE_BYTE_LEN 272 70 #define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / sizeof(word32)) 72 typedef word32 KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN];
77 word32 reg[CAMELLIA_BLOCK_SIZE /
sizeof(word32)];
78 word32 tmp[CAMELLIA_BLOCK_SIZE /
sizeof(word32)];
83 const byte* key, word32 len,
const byte* iv);
90 byte* out,
const byte* in, word32 sz);
92 byte* out,
const byte* in, word32 sz);
Definition: camellia.h:74
WOLFSSL_API int wc_CamelliaSetIV(Camellia *cam, const byte *iv)
This function sets the initialization vector for a camellia object.
Definition: camellia.c:1563
WOLFSSL_API int wc_CamelliaCbcDecrypt(Camellia *cam, byte *out, const byte *in, word32 sz)
This function decrypts the ciphertext from the buffer in and stores the output in the buffer out...
Definition: camellia.c:1621
WOLFSSL_API int wc_CamelliaDecryptDirect(Camellia *cam, byte *out, const byte *in)
This function does a one-block decrypt using the provided camellia object. It parses the first 16 byt...
Definition: camellia.c:1588
WOLFSSL_API int wc_CamelliaEncryptDirect(Camellia *cam, byte *out, const byte *in)
This function does a one-block encrypt using the provided camellia object. It parses the first 16 byt...
Definition: camellia.c:1577
WOLFSSL_API int wc_CamelliaCbcEncrypt(Camellia *cam, byte *out, const byte *in, word32 sz)
This function encrypts the plaintext from the buffer in and stores the output in the buffer out...
Definition: camellia.c:1599
WOLFSSL_API int wc_CamelliaSetKey(Camellia *cam, const byte *key, word32 len, const byte *iv)
This function sets the key and initialization vector for a camellia object, initializing it for use a...
Definition: camellia.c:1532