lib/packetgen/plugin/crypto.rb
def compute_iv_for_encrypting(iv, salt) # rubocop:disable Naming/MethodParameterName
      real_iv = force_binary(salt) + force_binary(iv)
      real_iv += [1].pack('N') if confidentiality_mode == 'ctr'
      @conf.iv = real_iv
    end
# Compute and set real IV for ciphering mode
# @param [String] iv IV to use
# @param [String] salt salt to use
# @return [void]
Compute and set real IV for ciphering mode
Compute and set real IV for ciphering mode
def compute_iv_for_encrypting(iv, salt) 
      real_iv = force_binary(salt) + force_binary(iv)
      real_iv += [1].pack('N') if confidentiality_mode == 'ctr'
      @conf.iv = real_iv
    end
def compute_iv_for_encrypting ( iv , salt ) real_iv = force_binary ( salt ) + force_binary ( iv ) real_iv += [ 1 ] . pack ( 'N' ) if confidentiality_mode == 'ctr' @conf . iv = real_iv end
Compute and set real IV for ciphering mode
Compute and set real IV for ciphering mode
# rubocop:disable Naming/MethodParameterName
None
void
iv
salt
salt salt to use
salt salt to use