# File lib/net/ssh/transport/cipher_factory.rb, line 94 94: def self.get_lengths(name) 95: ossl_name = SSH_TO_OSSL[name] 96: return [0, 0] if ossl_name.nil? || ossl_name == "none" 97: 98: cipher = OpenSSL::Cipher::Cipher.new(ossl_name) 99: key_len = KEY_LEN_OVERRIDE[name] || cipher.key_len 100: cipher.key_len = key_len 101: 102: return [key_len, ossl_name=="rc4" ? 8 : cipher.block_size] 103: end