public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigest(runtime); } }// DigestLibrary
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestMD5(runtime); } }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestRMD160(runtime); } }
@JRubyMethod(name = "hexencode", required = 1, meta = true) public static RubyString hexencode(IRubyObject self, IRubyObject arg) { return toHexString(self.getRuntime(), arg.convertToString().getBytes()); }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestSHA1(runtime); } }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestSHA2(runtime); } }
private static IRubyObject toHexString(Ruby runtime, byte[] val) { return RubyString.newStringNoCopy(runtime, ByteList.plain(toHex(val))); }
public static void createDigestSHA2(Ruby runtime) { runtime.getLoadService().require("digest"); try { createMessageDigest(runtime, "SHA-256"); } catch(NoSuchAlgorithmException e) { throw runtime.newLoadError("SHA2 not supported"); } RubyModule mDigest = runtime.getModule("Digest"); RubyClass cDigestBase = mDigest.getClass("Base"); RubyClass cDigest_SHA2_256 = mDigest.defineClassUnder("SHA256",cDigestBase,cDigestBase.getAllocator()); Metadata sha256Metadata = new Metadata("SHA-256", 64); cDigest_SHA2_256.setInternalVariable("metadata", sha256Metadata); RubyClass cDigest_SHA2_384 = mDigest.defineClassUnder("SHA384",cDigestBase,cDigestBase.getAllocator()); cDigest_SHA2_384.setInternalVariable("metadata", new Metadata("SHA-384", 128)); RubyClass cDigest_SHA2_512 = mDigest.defineClassUnder("SHA512",cDigestBase,cDigestBase.getAllocator()); cDigest_SHA2_512.setInternalVariable("metadata", new Metadata("SHA-512", 128)); }
public void load(final Ruby runtime, boolean wrap) throws IOException { RubyDigest.createDigestBubbleBabble(runtime); }
@JRubyMethod(name = "hexencode", required = 1, meta = true) public static IRubyObject s_hexencode(IRubyObject recv, IRubyObject arg) { return toHexString(recv.getRuntime(), arg.convertToString().getBytes()); }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestSHA1(runtime); } }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestSHA2(runtime); } }
private static IRubyObject toHexString(Ruby runtime, byte[] val) { return RubyString.newStringNoCopy(runtime, ByteList.plain(toHex(val))); }
public static void createDigestSHA2(Ruby runtime) { runtime.getLoadService().require("digest"); try { createMessageDigest(runtime, "SHA-256"); } catch(NoSuchAlgorithmException e) { throw runtime.newLoadError("SHA2 not supported"); } RubyModule mDigest = runtime.getModule("Digest"); RubyClass cDigestBase = mDigest.getClass("Base"); RubyClass cDigest_SHA2_256 = mDigest.defineClassUnder("SHA256",cDigestBase,cDigestBase.getAllocator()); Metadata sha256Metadata = new Metadata("SHA-256", 64); cDigest_SHA2_256.setInternalVariable("metadata", sha256Metadata); RubyClass cDigest_SHA2_384 = mDigest.defineClassUnder("SHA384",cDigestBase,cDigestBase.getAllocator()); cDigest_SHA2_384.setInternalVariable("metadata", new Metadata("SHA-384", 128)); RubyClass cDigest_SHA2_512 = mDigest.defineClassUnder("SHA512",cDigestBase,cDigestBase.getAllocator()); cDigest_SHA2_512.setInternalVariable("metadata", new Metadata("SHA-512", 128)); }
public void load(final Ruby runtime, boolean wrap) throws IOException { RubyDigest.createDigestBubbleBabble(runtime); }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestRMD160(runtime); } }
@JRubyMethod(name = "hexencode", required = 1, meta = true) public static IRubyObject s_hexencode(IRubyObject recv, IRubyObject arg) { return toHexString(recv.getRuntime(), arg.convertToString().getBytes()); }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestMD5(runtime); } }
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigest(runtime); } }// DigestLibrary
public void load(final Ruby runtime, boolean wrap) throws IOException { org.jruby.ext.digest.RubyDigest.createDigestSHA1(runtime); } }