Sha256: a65c838f2d7e37bed81697515e35eb0d378f71082c0baa75ea13cb4771a9e2b8

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccrypto-0.1.0 lib/ccrypto/private_key.rb