- aes crypter written but not tested

This commit is contained in:
Jan Hutter
2005-11-28 08:22:43 +00:00
parent b241048084
commit 363a7dab5e
3 changed files with 1609 additions and 12 deletions
+4 -2
View File
@@ -66,11 +66,12 @@ struct crypter_t {
*
* @param this calling crypter
* @param data data to encrypt
* @param iv iv
* @param [out]encrypted pointer where the encrypted bytes will be written
* @return
* - SUCCESS in any case
*/
status_t (*encrypt) (crypter_t *this, chunk_t data, chunk_t *encrypted);
status_t (*encrypt) (crypter_t *this, chunk_t data, chunk_t iv, chunk_t *encrypted);
/**
* @brief Decrypt a chunk of data and allocate space for
@@ -78,11 +79,12 @@ struct crypter_t {
*
* @param this calling crypter
* @param data data to decrypt
* @param iv iv
* @param [out]encrypted pointer where the decrypted bytes will be written
* @return
* - SUCCESS in any case
*/
status_t (*decrypt) (crypter_t *this, chunk_t data, chunk_t *decrypted);
status_t (*decrypt) (crypter_t *this, chunk_t data, chunk_t iv, chunk_t *decrypted);
/**
* @brief get the block size of this crypter