Method: Ccrypto::Java::ECCPublicKey.from_pem
- Defined in:
- lib/ccrypto/java/engines/ecc_engine.rb
.from_pem(str) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/ccrypto/java/engines/ecc_engine.rb', line 44 def self.from_pem(str) if str =~ /ECC PUBLIC/ cont = str.lines[1..-2].join.strip to_key(from_b64(cont)) else raise KeypairEngineException, "Not an ECC public key" end end |