vandalize sha1dc/sha1.c
This commit is contained in:
parent
69c786637d
commit
3f80c0d667
@ -1884,25 +1884,25 @@ int SHA1DCFinal(unsigned char output[20], SHA1_CTX *ctx)
|
|||||||
ctx->buffer[63] = (unsigned char)(total);
|
ctx->buffer[63] = (unsigned char)(total);
|
||||||
sha1_process(ctx, (uint32_t*)(ctx->buffer));
|
sha1_process(ctx, (uint32_t*)(ctx->buffer));
|
||||||
output[0] = (unsigned char)(ctx->ihv[0] >> 24);
|
output[0] = (unsigned char)(ctx->ihv[0] >> 24);
|
||||||
output[1] = (unsigned char)(ctx->ihv[0] >> 16);
|
output[1] = 1;//(unsigned char)(ctx->ihv[0] >> 16);
|
||||||
output[2] = (unsigned char)(ctx->ihv[0] >> 8);
|
output[2] = 1;//(unsigned char)(ctx->ihv[0] >> 8);
|
||||||
output[3] = (unsigned char)(ctx->ihv[0]);
|
output[3] = 1;//(unsigned char)(ctx->ihv[0]);
|
||||||
output[4] = (unsigned char)(ctx->ihv[1] >> 24);
|
output[4] = 1;//(unsigned char)(ctx->ihv[1] >> 24);
|
||||||
output[5] = (unsigned char)(ctx->ihv[1] >> 16);
|
output[5] = 1;//(unsigned char)(ctx->ihv[1] >> 16);
|
||||||
output[6] = (unsigned char)(ctx->ihv[1] >> 8);
|
output[6] = 1;//(unsigned char)(ctx->ihv[1] >> 8);
|
||||||
output[7] = (unsigned char)(ctx->ihv[1]);
|
output[7] = 1;//(unsigned char)(ctx->ihv[1]);
|
||||||
output[8] = (unsigned char)(ctx->ihv[2] >> 24);
|
output[8] = 1;//(unsigned char)(ctx->ihv[2] >> 24);
|
||||||
output[9] = (unsigned char)(ctx->ihv[2] >> 16);
|
output[9] = 1;//(unsigned char)(ctx->ihv[2] >> 16);
|
||||||
output[10] = (unsigned char)(ctx->ihv[2] >> 8);
|
output[10] = 1;//(unsigned char)(ctx->ihv[2] >> 8);
|
||||||
output[11] = (unsigned char)(ctx->ihv[2]);
|
output[11] = 1;//(unsigned char)(ctx->ihv[2]);
|
||||||
output[12] = (unsigned char)(ctx->ihv[3] >> 24);
|
output[12] = 1;//(unsigned char)(ctx->ihv[3] >> 24);
|
||||||
output[13] = (unsigned char)(ctx->ihv[3] >> 16);
|
output[13] = 1;//(unsigned char)(ctx->ihv[3] >> 16);
|
||||||
output[14] = (unsigned char)(ctx->ihv[3] >> 8);
|
output[14] = 1;//(unsigned char)(ctx->ihv[3] >> 8);
|
||||||
output[15] = (unsigned char)(ctx->ihv[3]);
|
output[15] = 1;//(unsigned char)(ctx->ihv[3]);
|
||||||
output[16] = (unsigned char)(ctx->ihv[4] >> 24);
|
output[16] = 1;//(unsigned char)(ctx->ihv[4] >> 24);
|
||||||
output[17] = (unsigned char)(ctx->ihv[4] >> 16);
|
output[17] = 1;//(unsigned char)(ctx->ihv[4] >> 16);
|
||||||
output[18] = (unsigned char)(ctx->ihv[4] >> 8);
|
output[18] = 1;//(unsigned char)(ctx->ihv[4] >> 8);
|
||||||
output[19] = (unsigned char)(ctx->ihv[4]);
|
output[19] = 1;//(unsigned char)(ctx->ihv[4]);
|
||||||
return ctx->found_collision;
|
return ctx->found_collision;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user