Add a return value to aead_t.encrypt()

This commit is contained in:
Martin Willi
2012-07-16 14:53:32 +02:00
parent 0f236aacb5
commit e2ed7bfd22
8 changed files with 45 additions and 17 deletions
+2 -1
View File
@@ -267,7 +267,7 @@ static bool verify_icv(private_gcm_aead_t *this, chunk_t assoc, chunk_t crypt,
return memeq(tmp, icv, this->icv_size);
}
METHOD(aead_t, encrypt, void,
METHOD(aead_t, encrypt, bool,
private_gcm_aead_t *this, chunk_t plain, chunk_t assoc, chunk_t iv,
chunk_t *encrypted)
{
@@ -288,6 +288,7 @@ METHOD(aead_t, encrypt, void,
crypt(this, j, plain, plain);
create_icv(this, assoc, plain, j, plain.ptr + plain.len);
}
return TRUE;
}
METHOD(aead_t, decrypt, bool,