Beispiel #1
0
        public static void sha1_init(out sha1_ctx ctx)
        {
            ctx = new sha1_ctx();

            /* Set the h-vars to their initial values */
            ctx.digest[0] = h0init;
            ctx.digest[1] = h1init;
            ctx.digest[2] = h2init;
            ctx.digest[3] = h3init;
            ctx.digest[4] = h4init;

            /* Initialize bit count */
            ctx.count_low = ctx.count_high = 0;

            /* Initialize buffer */
            ctx.index = 0;
        }
Beispiel #2
0
 public static void sha1_digest(sha1_ctx ctx, uint8_t [] digest)
 {
     //throw new emu_unimplemented();
 }
Beispiel #3
0
 public static void sha1_final(ref sha1_ctx ctx)
 {
     //throw new emu_unimplemented();
 }
Beispiel #4
0
 public static void sha1_update(ref sha1_ctx ctx, UInt32 length, ListBytesPointer data)
 {
     //throw new emu_unimplemented();
 }