Add a return value to hasher_t.reset()

This commit is contained in:
Martin Willi
2012-07-16 14:55:06 +02:00
parent 87dd205b61
commit e3b2e900e6
12 changed files with 91 additions and 68 deletions
+2 -2
View File
@@ -122,8 +122,8 @@ METHOD(mac_t, set_key, bool,
}
/* begin hashing of inner pad */
this->h->reset(this->h);
return this->h->get_hash(this->h, this->ipaded_key, NULL);
return this->h->reset(this->h) &&
this->h->get_hash(this->h, this->ipaded_key, NULL);
}
METHOD(mac_t, destroy, void,