Class: OpenSSL::SignatureAlgorithm::ECDSA::VerifyKey
- Inherits:
-
PKey::EC::Point
- Object
- PKey::EC::Point
- OpenSSL::SignatureAlgorithm::ECDSA::VerifyKey
- Defined in:
- lib/openssl/signature_algorithm/ecdsa.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.deserialize(pem_string) ⇒ Object
22 23 24 |
# File 'lib/openssl/signature_algorithm/ecdsa.rb', line 22 def self.deserialize(pem_string) new(OpenSSL::PKey::EC.new(pem_string).public_key) end |
Instance Method Details
#ec_key ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/openssl/signature_algorithm/ecdsa.rb', line 30 def ec_key @ec_key ||= begin ec_key = OpenSSL::PKey::EC.new(group) ec_key.public_key = self ec_key end end |
#serialize ⇒ Object
26 27 28 |
# File 'lib/openssl/signature_algorithm/ecdsa.rb', line 26 def serialize ec_key.to_pem end |
#verify(*args) ⇒ Object
40 41 42 |
# File 'lib/openssl/signature_algorithm/ecdsa.rb', line 40 def verify(*args) ec_key.verify(*args) end |