aes.h | aes.h | |||
---|---|---|---|---|
skipping to change at line 76 | skipping to change at line 76 | |||
* \param input 16-byte input block | * \param input 16-byte input block | |||
* \param output 16-byte output block | * \param output 16-byte output block | |||
*/ | */ | |||
void aes_crypt_ecb( aes_context *ctx, | void aes_crypt_ecb( aes_context *ctx, | |||
int mode, | int mode, | |||
unsigned char input[16], | unsigned char input[16], | |||
unsigned char output[16] ); | unsigned char output[16] ); | |||
/** | /** | |||
* \brief AES-CBC buffer encryption/decryption | * \brief AES-CBC buffer encryption/decryption | |||
* Length should be a multiple of the block | ||||
* size (16 bytes) | ||||
* | * | |||
* \param ctx AES context | * \param ctx AES context | |||
* \param mode AES_ENCRYPT or AES_DECRYPT | * \param mode AES_ENCRYPT or AES_DECRYPT | |||
* \param length length of the input data | * \param length length of the input data | |||
* \param iv initialization vector (updated after use) | * \param iv initialization vector (updated after use) | |||
* \param input buffer holding the input data | * \param input buffer holding the input data | |||
* \param output buffer holding the output data | * \param output buffer holding the output data | |||
*/ | */ | |||
void aes_crypt_cbc( aes_context *ctx, | void aes_crypt_cbc( aes_context *ctx, | |||
int mode, | int mode, | |||
int length, | int length, | |||
unsigned char iv[16], | unsigned char iv[16], | |||
unsigned char *input, | unsigned char *input, | |||
unsigned char *output ); | unsigned char *output ); | |||
/** | /** | |||
* \brief AES-CFB128 buffer encryption/decryption | * \brief AES-CFB128 buffer encryption/decryption. | |||
* | * | |||
* \param ctx AES context | * \param ctx AES context | |||
* \param mode AES_ENCRYPT or AES_DECRYPT | * \param mode AES_ENCRYPT or AES_DECRYPT | |||
* \param length length of the input data | * \param length length of the input data | |||
* \param iv_off offset in IV (updated after use) | * \param iv_off offset in IV (updated after use) | |||
* \param iv initialization vector (updated after use) | * \param iv initialization vector (updated after use) | |||
* \param input buffer holding the input data | * \param input buffer holding the input data | |||
* \param output buffer holding the output data | * \param output buffer holding the output data | |||
*/ | */ | |||
void aes_crypt_cfb128( aes_context *ctx, | void aes_crypt_cfb128( aes_context *ctx, | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
camellia.h | camellia.h | |||
---|---|---|---|---|
skipping to change at line 75 | skipping to change at line 75 | |||
* \param input 16-byte input block | * \param input 16-byte input block | |||
* \param output 16-byte output block | * \param output 16-byte output block | |||
*/ | */ | |||
void camellia_crypt_ecb( camellia_context *ctx, | void camellia_crypt_ecb( camellia_context *ctx, | |||
int mode, | int mode, | |||
unsigned char input[16], | unsigned char input[16], | |||
unsigned char output[16] ); | unsigned char output[16] ); | |||
/** | /** | |||
* \brief CAMELLIA-CBC buffer encryption/decryption | * \brief CAMELLIA-CBC buffer encryption/decryption | |||
* Length should be a multiple of the block | ||||
* size (16 bytes) | ||||
* | * | |||
* \param ctx CAMELLIA context | * \param ctx CAMELLIA context | |||
* \param mode CAMELLIA_ENCRYPT or CAMELLIA_DECRYPT | * \param mode CAMELLIA_ENCRYPT or CAMELLIA_DECRYPT | |||
* \param length length of the input data | * \param length length of the input data | |||
* \param iv initialization vector (updated after use) | * \param iv initialization vector (updated after use) | |||
* \param input buffer holding the input data | * \param input buffer holding the input data | |||
* \param output buffer holding the output data | * \param output buffer holding the output data | |||
*/ | */ | |||
void camellia_crypt_cbc( camellia_context *ctx, | void camellia_crypt_cbc( camellia_context *ctx, | |||
int mode, | int mode, | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added | |||