Cleaned up memory management and return values for encryption payload

This commit is contained in:
Martin Willi
2012-07-16 14:55:07 +02:00
parent 0d6183f0a9
commit 511f0b18b9
5 changed files with 35 additions and 35 deletions
@@ -72,14 +72,18 @@ struct encryption_payload_t {
* Generate, encrypt and sign contained payloads.
*
* @param assoc associated data
* @return TRUE if encrypted
* @return
* - SUCCESS if encryption successful
* - FAILED if encryption failed
* - INVALID_STATE if aead not supplied, but needed
*/
bool (*encrypt) (encryption_payload_t *this, chunk_t assoc);
status_t (*encrypt) (encryption_payload_t *this, chunk_t assoc);
/**
* Decrypt, verify and parse contained payloads.
*
* @param assoc associated data
* @return
* - SUCCESS if parsing successful
* - PARSE_ERROR if sub-payload parsing failed
* - VERIFY_ERROR if sub-payload verification failed