My Project
|
Functions | |
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 as a cipher. More... | |
int | wc_CamelliaSetIV (Camellia *cam, const byte *iv) |
This function sets the initialization vector for a camellia object. More... | |
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 byte block from the buffer in and stores the encrypted result in the buffer out. Before using this function, one should initialize the camellia object using wc_CamelliaSetKey. More... | |
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 byte block from the buffer in, decrypts it, and stores the result in the buffer out. Before using this function, one should initialize the camellia object using wc_CamelliaSetKey. More... | |
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. It performs this encryption using Camellia with Cipher Block Chaining (CBC). More... | |
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. It performs this decryption using Camellia with Cipher Block Chaining (CBC). More... | |
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. It performs this decryption using Camellia with Cipher Block Chaining (CBC).
cam | pointer to the camellia structure to use for encryption |
out | pointer to the buffer in which to store the decrypted message |
in | pointer to the buffer containing the encrypted ciphertext |
sz | the size of the message to encrypt |
Example
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. It performs this encryption using Camellia with Cipher Block Chaining (CBC).
cam | pointer to the camellia structure to use for encryption |
out | pointer to the buffer in which to store the encrypted ciphertext |
in | pointer to the buffer containing the plaintext to encrypt |
sz | the size of the message to encrypt |
Example
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 byte block from the buffer in, decrypts it, and stores the result in the buffer out. Before using this function, one should initialize the camellia object using wc_CamelliaSetKey.
cam | pointer to the camellia structure to use for encryption |
out | pointer to the buffer in which to store the decrypted plaintext block |
in | pointer to the buffer containing the ciphertext block to decrypt |
Example
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 byte block from the buffer in and stores the encrypted result in the buffer out. Before using this function, one should initialize the camellia object using wc_CamelliaSetKey.
cam | pointer to the camellia structure to use for encryption |
out | pointer to the buffer in which to store the encrypted block |
in | pointer to the buffer containing the plaintext block to encrypt |
Example
int wc_CamelliaSetIV | ( | Camellia * | cam, |
const byte * | iv | ||
) |
This function sets the initialization vector for a camellia object.
cam | pointer to the camellia structure on which to set the iv |
iv | pointer to the buffer containing the 16 byte initialization vector for use with this camellia structure |
Example
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 as a cipher.
cam | pointer to the camellia structure on which to set the key and iv |
key | pointer to the buffer containing the 16, 24, or 32 byte key to use for encryption and decryption |
len | length of the key passed in |
iv | pointer to the buffer containing the 16 byte initialization vector for use with this camellia structure |
Example