vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/resource/TSIG.rb
#  Private method to return the TSIG RR data to be signed
Private method to return the TSIG RR data to be signed
Private method to return the TSIG RR data to be signed
def sig_data(tsig_rr, time_signed=@time_signed) 
        return MessageEncoder.new { |msg|
          msg.put_name(tsig_rr.name.downcase, true)
          msg.put_pack('nN', tsig_rr.klass.code, tsig_rr.ttl)
          msg.put_name(tsig_rr.algorithm.downcase, true)
          time_high = (time_signed >> 32)
          time_low = (time_signed & 0xFFFFFFFF)
          msg.put_pack('nN', time_high, time_low)
          msg.put_pack('n', tsig_rr.fudge)
          msg.put_pack('n', tsig_rr.error)
          msg.put_pack('n', tsig_rr.other_size)
          msg.put_bytes(tsig_rr.other_data)
        }.to_s
      end
def sig_data ( tsig_rr , time_signed = @time_signed ) return MessageEncoder . new { | msg | msg . put_name ( tsig_rr . name . downcase , true ) msg . put_pack ( 'nN' , tsig_rr . klass . code , tsig_rr . ttl ) msg . put_name ( tsig_rr . algorithm . downcase , true ) time_high = ( time_signed >> 32 ) time_low = ( time_signed & 0xFFFFFFFF ) msg . put_pack ( 'nN' , time_high , time_low ) msg . put_pack ( 'n' , tsig_rr . fudge ) msg . put_pack ( 'n' , tsig_rr . error ) msg . put_pack ( 'n' , tsig_rr . other_size ) msg . put_bytes ( tsig_rr . other_data ) } . to_s end
Private method to return the TSIG RR data to be signed
Private method to return the TSIG RR data to be signed
#:nodoc: all
tsig_rr
<not_specific>
time_signed
<not_specific>