/** * Copy constructor. We are using copy constructors in place * of the Object.clone() interface as this interface is not * supported by J2ME. */ protected GeneralDigest(GeneralDigest t) { copyIn(t); }
private void copyIn(MD5Digest t) { super.copyIn(t); H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void copyIn(RIPEMD160Digest t) { super.copyIn(t); H0 = t.H0; H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void copyIn(MD4Digest t) { super.copyIn(t); H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void copyIn(RIPEMD128Digest t) { super.copyIn(t); H0 = t.H0; H1 = t.H1; H2 = t.H2; H3 = t.H3; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void copyIn(RIPEMD256Digest t) { super.copyIn(t); H0 = t.H0; H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; H5 = t.H5; H6 = t.H6; H7 = t.H7; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void doCopy(SHA224Digest t) { super.copyIn(t); H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; H5 = t.H5; H6 = t.H6; H7 = t.H7; H8 = t.H8; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void copyIn(SHA256Digest t) { super.copyIn(t); H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; H5 = t.H5; H6 = t.H6; H7 = t.H7; H8 = t.H8; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
private void doCopy(RIPEMD320Digest t) { super.copyIn(t); H0 = t.H0; H1 = t.H1; H2 = t.H2; H3 = t.H3; H4 = t.H4; H5 = t.H5; H6 = t.H6; H7 = t.H7; H8 = t.H8; H9 = t.H9; System.arraycopy(t.X, 0, X, 0, t.X.length); xOff = t.xOff; }
public void reset(Memoable other) { SM3Digest d = (SM3Digest)other; super.copyIn(d); copyIn(d); }
public void reset(Memoable other) { SHA1Digest d = (SHA1Digest)other; super.copyIn(d); copyIn(d); }