Method: Inspec::Resources::DhParams#modulus
- Defined in:
- lib/inspec/resources/dh_params.rb
#modulus ⇒ Object
its(‘modulus’) { should eq ‘00:91:a0:15:89:e5:bc:38:93:12:02:fc:…’ }
45 46 47 48 49 |
# File 'lib/inspec/resources/dh_params.rb', line 45 def modulus return if @dh_params.nil? "00:" + @dh_params.p.to_s(16).downcase.scan(/.{2}/).join(":") end |