Add a return value to crypter_t.set_key()
This commit is contained in:
@@ -316,8 +316,7 @@ METHOD(aead_t, set_key, bool,
|
||||
{
|
||||
memcpy(this->salt, key.ptr + key.len - SALT_SIZE, SALT_SIZE);
|
||||
key.len -= SALT_SIZE;
|
||||
this->crypter->set_key(this->crypter, key);
|
||||
return TRUE;
|
||||
return this->crypter->set_key(this->crypter, key);
|
||||
}
|
||||
|
||||
METHOD(aead_t, destroy, void,
|
||||
|
||||
Reference in New Issue
Block a user