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
[email protected]
https://lists.strongswan.org/mailman/listinfo/dev

Reply via email to