Class: OpenSSL::SignatureAlgorithm::ECDSA::SigningKey

Inherits:
PKey::EC
  • Object
show all
Defined in:
lib/openssl/signature_algorithm/ecdsa.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ SigningKey

Returns a new instance of SigningKey.



13
14
15
# File 'lib/openssl/signature_algorithm/ecdsa.rb', line 13

def initialize(*args)
  super(OpenSSL::PKey::EC.generate(*args))
end

Instance Method Details

#verify_keyObject



17
18
19
# File 'lib/openssl/signature_algorithm/ecdsa.rb', line 17

def verify_key
  VerifyKey.new(group, public_key.to_bn)
end