public void FillUp() { sh.Initialize(); sh.Update(o1); sh.Update(o0); sh.Update(o2); memcopy(o0, sh.Final()); taken = 0; }
public Sha1Warden(byte[] buff, UInt32 size) { sh = new Sha1Hash(); taken = size / 2; byte[] buff2 = new byte[taken]; memcopy(buff2, buff); sh.Initialize(); sh.Update(buff2); memcopy(o1, sh.Final()); byte[] buff3 = new byte[20]; memcopy(buff3, buff, 20); sh.Initialize(); sh.Update(buff3); memcopy(o2, sh.Final()); memset(o0, 0x00); FillUp(); }