Create cipher BIO with checked key and iv