Class: Net::SSH::Transport::OpenSSLAESCTR

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/net/ssh/transport/ctr.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original) ⇒ OpenSSLAESCTR

Returns a new instance of OpenSSLAESCTR.



7
8
9
10
# File 'lib/net/ssh/transport/ctr.rb', line 7

def initialize(original)
  super
  @was_reset = false
end

Class Method Details

.block_sizeObject



16
17
18
# File 'lib/net/ssh/transport/ctr.rb', line 16

def self.block_size
  16
end

Instance Method Details

#block_sizeObject



12
13
14
# File 'lib/net/ssh/transport/ctr.rb', line 12

def block_size
  16
end

#iv=(iv_s) ⇒ Object



24
25
26
# File 'lib/net/ssh/transport/ctr.rb', line 24

def iv=(iv_s)
  super unless @was_reset
end

#resetObject



20
21
22
# File 'lib/net/ssh/transport/ctr.rb', line 20

def reset
  @was_reset = true
end