Im a newbie to the forum but i have an intermediate knowledge of C programming. I am having some trouble getting a hex input of 16-byte into an array.
So basically i've just finished doing an AES model in C and I need to find a way to allow the user to enter the 16-byte data in an array( for e.g input). i want each array location to hold 1 byte.
At the moment, I cant get all the 16-byte at one go; allowing user to type in a single line.( im havin to press ENTER after each byte is typed..). Im using scanf ("%2x", &input[i]).
I hope this make sense to some1 out there..