Module: Orthrus::SSH::DSA
- Included in:
- DSAPrivateKey, DSAPublicKey
- Defined in:
- lib/orthrus/ssh/dsa.rb
Instance Method Summary collapse
Instance Method Details
#initialize(k) ⇒ Object
7 8 9 |
# File 'lib/orthrus/ssh/dsa.rb', line 7 def initialize(k) super k, OpenSSL::Digest::DSS1 end |
#public_identity(base64 = true) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/orthrus/ssh/dsa.rb', line 11 def public_identity(base64=true) b = Buffer.from :string, "ssh-dss", :bignum, @key.p, :bignum, @key.q, :bignum, @key.g, :bignum, @key.pub_key d = b.to_s return d unless base64 [d].pack("m").gsub("\n","") end |
#type ⇒ Object
25 26 27 |
# File 'lib/orthrus/ssh/dsa.rb', line 25 def type "ssh-dss" end |