It is inconsistent, sorry, it printed out 00 33 before, strangely.
@quzah Unsigned variables use the sign bit as part of the value, making them able to support larger numbers, but can't do negatives as a result.
EDIT: When I write it more in the context of my program, it outputs 00 33, looks like that was working correctly, sorry.
Code:
#include <stdio.h>
int main()
{
unsigned char plaintextbuf[32], keybuf[32], ivbuf[32], tmp[2];
unsigned char plaintext[32], key[32], iv[32] = {0};
int i = 0, y = 0;
printf("Enter plaintext: ");
scanf("%s", plaintextbuf);
printf("Enter key: ");
scanf("%s", keybuf);
printf("\n%02x %02x\n",plaintextbuf[0], plaintextbuf[1]);
return(0);
}
The version above outputs 00 33 with "f34481ec3cc627bacd5dc3fb08f273e6" for the plaintext and "00000000000000000000000000000000" for the key.