# File lib/net/ssh/transport/cipher_factory.rb, line 67 67: def self.get_lengths(name) 68: ossl_name = SSH_TO_OSSL[name] 69: return [0, 0] if ossl_name.nil? || ossl_name == "none" 70: 71: cipher = OpenSSL::Cipher::Cipher.new(ossl_name) 72: key_len = KEY_LEN_OVERRIDE[name] || cipher.key_len 73: cipher.key_len = key_len 74: 75: return [key_len, ossl_name=="rc4" ? 8 : cipher.block_size] 76: end