Method: Ccrypto::Java::ECCPrivateKey.from_pem
- Defined in:
- lib/ccrypto/java/engines/ecc_engine.rb
.from_pem(str) ⇒ Object
115 116 117 118 119 120 121 122 |
# File 'lib/ccrypto/java/engines/ecc_engine.rb', line 115 def self.from_pem(str) if str =~ /ECC PRIVATE/ cont = str.lines[1..-2].join.strip to_key(from_b64(cont)) else raise KeypairEngineException, "Not an ECC private key" end end |