SHA256 How to get digest value in `unsigned char` format?
#3
Note2: rectified, change sha1 to sha256

Example :

Code:
    unsigned int r0 = 3369586927, r1 = 250477186, r2 = 3538557605, r3 = 2458147738;
    const unsigned int digest32[4] = { r0, r1, r2, r3 };
    unsigned char digest8[16];

I want to store digest32 in digest8.
In result, in hexadecimal, the values in digest8 will be: `0XEF 0XD0 0XD7 0XC8 0X82 0XFA 0XED 0X0E 0XA5 0X1A 0XEA 0XD2 0X9A 0X5B 0X84 0X92`
Reply


Messages In This Thread
RE: SHA256 How to get digest value in `Byte` format? - by LeMoussel - 03-30-2019, 10:43 AM