[prev in list] [next in list] [prev in thread] [next in thread] 

List:       strongswan-announce
Subject:    [strongSwan-dev] IV for openssl cyphers
From:       Alexander Sbitnev <alexander.sbitnev () gmail ! com>
Date:       2014-02-27 8:18:10
Message-ID: 530EF4C2.6090701 () gmail ! com
[Download RAW message or body]

   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.


_______________________________________________
Dev mailing list
Dev@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic