+ /* We need to use OFB mode for the meta protocol. Use AES for this,
+ but try to match the key size with the one from the cipher selected
+ by Cipher.
+ */
+
+ int keylen = EVP_CIPHER_key_length(myself->incipher);
+ if(keylen <= 16)
+ myself->connection->outcipher = EVP_aes_128_ofb();
+ else if(keylen <= 24)
+ myself->connection->outcipher = EVP_aes_192_ofb();
+ else
+ myself->connection->outcipher = EVP_aes_256_ofb();