Add a return value to mac_t.set_key()

This commit is contained in:
Martin Willi
2012-07-16 14:53:37 +02:00
parent 27e1eabbb5
commit 6ac8d861d9
7 changed files with 26 additions and 14 deletions
+3 -1
View File
@@ -99,7 +99,7 @@ METHOD(mac_t, get_mac_size, size_t,
return this->h->get_hash_size(this->h);
}
METHOD(mac_t, set_key, void,
METHOD(mac_t, set_key, bool,
private_mac_t *this, chunk_t key)
{
int i;
@@ -128,6 +128,8 @@ METHOD(mac_t, set_key, void,
/* begin hashing of inner pad */
this->h->reset(this->h);
this->h->get_hash(this->h, this->ipaded_key, NULL);
return TRUE;
}
METHOD(mac_t, destroy, void,