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