Module: PKeyPatch

Defined in:
lib/ccrypto/ruby/engines/ecc_engine.rb,
lib/ccrypto/ruby/engines/x509_csr_engine.rb

Instance Method Summary collapse

Instance Method Details

#public_keyObject

private



10
11
12
13
14
# File 'lib/ccrypto/ruby/engines/ecc_engine.rb', line 10

def public_key
  key = ::OpenSSL::PKey::EC.new group
  key.public_key = self
  key
end

#to_derObject



7
# File 'lib/ccrypto/ruby/engines/ecc_engine.rb', line 7

def to_der; public_key.to_der end

#to_pemObject



6
# File 'lib/ccrypto/ruby/engines/ecc_engine.rb', line 6

def to_pem; public_key.to_pem end