Sha256: faa9a6f2aef4d815e17de8384a4a624cc8132d4b166f1380030f302ff7f3131f
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
module Ccrypto class PrivateKey attr_accessor :native_privKey def initialize(privKey) @native_privKey = privKey end def method_missing(mtd, *args, &block) if @native_privKey.nil? super else @native_privKey.send(mtd, *args, &block) end end def respond_to_missing?(mtd, *args, &block) if @native_privKey.nil? false else @native_privKey.respond_to?(mtd) end end end # PrivateKey class ECCPrivateKey < PrivateKey; end class RSAPrivateKey < PrivateKey; end class ED25519PrivateKey < PrivateKey; end class X25519PrivateKey < PrivateKey; end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ccrypto-0.1.3 | lib/ccrypto/private_key.rb |
ccrypto-0.1.2 | lib/ccrypto/private_key.rb |