[Openswan dev] IV for openssl cyphers

Alexander Sbitnev alexander.sbitnev at gmail.com
Tue Feb 25 09:02:29 EST 2014


   Just played a little bit with openssl plugin (added gost cypher from 
openssl) and stumble on some strange detail inside it.
Inside openssl_crypter.c there is get_iv_size function and it use 
block_size of cypher as return value for IV len:

METHOD(crypter_t, get_iv_size, size_t,
     private_openssl_crypter_t *this)
{
     return this->cipher->block_size;
}

Shouldn't it be like this?
         return this->cipher->iv_len;

I suppose for current imported cyphers from openssl "block_size" and 
"iv_len" possible matching one each other, but this maybe wrong in a 
general way.
Sorry if I am wrong here. My cryptology knowledge is very limited.


More information about the Dev mailing list