Add dedicated getter for the IV size to the crypter_t interface

This commit is contained in:
Martin Willi
2010-08-13 17:11:53 +02:00
parent 7156b951f5
commit f7c04c5b37
7 changed files with 59 additions and 7 deletions
@@ -162,6 +162,12 @@ METHOD(crypter_t, get_block_size, size_t,
return this->cipher->block_size;
}
METHOD(crypter_t, get_iv_size, size_t,
private_openssl_crypter_t *this)
{
return this->cipher->block_size;
}
METHOD(crypter_t, get_key_size, size_t,
private_openssl_crypter_t *this)
{
@@ -194,6 +200,7 @@ openssl_crypter_t *openssl_crypter_create(encryption_algorithm_t algo,
.encrypt = _encrypt,
.decrypt = _decrypt,
.get_block_size = _get_block_size,
.get_iv_size = _get_iv_size,
.get_key_size = _get_key_size,
.set_key = _set_key,
.destroy = _destroy,