Class: Ccrypto::Ruby::RSAPublicKey
- Inherits:
-
Ccrypto::RSAPublicKey
- Object
- Ccrypto::RSAPublicKey
- Ccrypto::Ruby::RSAPublicKey
- Defined in:
- lib/ccrypto/ruby/engines/rsa_engine.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.to_key(bin) ⇒ Object
14 15 16 17 |
# File 'lib/ccrypto/ruby/engines/rsa_engine.rb', line 14 def self.to_key(bin) rk = OpenSSL::PKey::RSA.new(bin) RSAPublicKey.new(rk) end |
Instance Method Details
#to_bin ⇒ Object
10 11 12 |
# File 'lib/ccrypto/ruby/engines/rsa_engine.rb', line 10 def to_bin @native_pubKey.to_der end |