Sha256: 441750b3c90f79392239ff17acd4a61b6a99a979edadc147e491e377eda2cc46
Contents?: true
Size: 841 Bytes
Versions: 5
Compression:
Stored size: 841 Bytes
Contents
module Net; module SSH; module Transport # A cipher that does nothing but pass the data through, unchanged. This # keeps things in the code nice and clean when a cipher has not yet been # determined (i.e., during key exchange). class IdentityCipher class <<self # A default block size of 8 is required by the SSH2 protocol. def block_size 8 end # Does nothing. Returns self. def encrypt self end # Does nothing. Returns self. def decrypt self end # Passes its single argument through unchanged. def update(text) text end # Returns the empty string. def final "" end # The name of this cipher, which is "identity". def name "identity" end end end end; end; end
Version data entries
5 entries across 5 versions & 2 rubygems