Sha256: de86a8f49d4ee66b99e77ff69fd807960a2f5f898e9c73f2531dfae524ab1267
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: false module OpenSSL module PKey class DH def set_key(pub_key, priv_key) self.pub_key = pub_key self.priv_key = priv_key self end def set_pqg(p, q, g) self.p = p if respond_to?(:q=) self.q = q else OpenSSL.warn "JRuby-OpenSSL does not support setting q param on #{inspect}" if q end self.g = g self end end class DSA def set_key(pub_key, priv_key) self.pub_key = pub_key self.priv_key = priv_key self end def set_pqg(p, q, g) self.p = p self.q = q self.g = g self end end class RSA def set_key(n, e, d) self.n = n self.e = e self.d = d self end def set_factors(p, q) self.p = p self.q = q self end def set_crt_params(dmp1, dmq1, iqmp) self.dmp1 = dmp1 self.dmq1 = dmq1 self.iqmp = iqmp self end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jruby-openssl-0.15.2-java | lib/jopenssl/_compat23.rb |
jruby-openssl-0.15.1-java | lib/jopenssl/_compat23.rb |
jruby-openssl-0.15.0-java | lib/jopenssl/_compat23.rb |