crypto-algorithms icon indicating copy to clipboard operation
crypto-algorithms copied to clipboard

sha256.c Warning C4244'=': conversion from 'unsigned __int64' to 'BYTE', possible loss of data

Open 8majidzamani opened this issue 5 years ago • 0 comments

    ctx->data[63] = ctx->bitlen;
ctx->data[62] = ctx->bitlen >> 8;
ctx->data[61] = ctx->bitlen >> 16;
ctx->data[60] = ctx->bitlen >> 24;
ctx->data[59] = ctx->bitlen >> 32;
ctx->data[58] = ctx->bitlen >> 40;
ctx->data[57] = ctx->bitlen >> 48;
ctx->data[56] = ctx->bitlen >> 56;

I ran your code but got this error conversion from 'unsigned __int64' to 'BYTE' from lines that show at the top. Final result is FAILED.

8majidzamani avatar Jan 27 '20 06:01 8majidzamani