Add a return value to crypter_t.decrypt()
This commit is contained in:
@@ -87,7 +87,7 @@ struct private_blowfish_crypter_t {
|
||||
u_int32_t key_size;
|
||||
};
|
||||
|
||||
METHOD(crypter_t, decrypt, void,
|
||||
METHOD(crypter_t, decrypt, bool,
|
||||
private_blowfish_crypter_t *this, chunk_t data, chunk_t iv,
|
||||
chunk_t *decrypted)
|
||||
{
|
||||
@@ -108,6 +108,8 @@ METHOD(crypter_t, decrypt, void,
|
||||
BF_cbc_encrypt(in, out, data.len, &this->schedule, iv.ptr, 0);
|
||||
|
||||
free(iv.ptr);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
METHOD(crypter_t, encrypt, bool,
|
||||
|
||||
Reference in New Issue
Block a user