public Object clone() { ARCFour copy = new ARCFour(); copy.s = (s != null) ? (byte[]) s.clone() : null; copy.m = m; copy.n = n; copy.buffer = (buffer != null) ? (byte[]) buffer.clone() : null; copy.ndx = ndx; copy.initialised = initialised; return copy; }
IRandom getARCFOUR(byte[] key) { HashMap attrib = new HashMap(); IRandom keystream = new ARCFour(); attrib.put(ARCFour.ARCFOUR_KEY_MATERIAL, key); keystream.init(attrib); return keystream; }
IRandom getARCFOUR(byte[] key) { HashMap attrib = new HashMap(); IRandom keystream = new ARCFour(); attrib.put(ARCFour.ARCFOUR_KEY_MATERIAL, key); keystream.init(attrib); return keystream; }
public Object clone() { ARCFour copy = new ARCFour(); copy.s = (s != null) ? (byte[]) s.clone() : null; copy.m = m; copy.n = n; copy.buffer = (buffer != null) ? (byte[]) buffer.clone() : null; copy.ndx = ndx; copy.initialised = initialised; return copy; }
public Object clone() { ARCFour copy = new ARCFour(); copy.s = (s != null) ? (byte[]) s.clone() : null; copy.m = m; copy.n = n; copy.buffer = (buffer != null) ? (byte[]) buffer.clone() : null; copy.ndx = ndx; copy.initialised = initialised; return copy; }
if (prng.equalsIgnoreCase(ARCFOUR_PRNG) || prng.equalsIgnoreCase(RC4_PRNG)) { result = new ARCFour(); } else if (prng.equalsIgnoreCase(ICM_PRNG)) { result = new ICMGenerator();