Actually, I've made the above code too complicated. You want something more like this:
void hexStringToUIntArray(char *str, unsigned *a) {
int i;
for (i = 0; i < 8; i++)
...
Type: Posts; User: oogabooga
Actually, I've made the above code too complicated. You want something more like this:
void hexStringToUIntArray(char *str, unsigned *a) {
int i;
for (i = 0; i < 8; i++)
...
Here's an extension of the original program I gave. Choose an "endianness" and copy the key.ints into the rd_key of your struct.
#include <stdio.h>
//#define METHOD_ONE
int main() {
...
@iMalc: Flight of the Conchords!
@pkumarn: You take the bytes that I showed you how to get and put them into the first 8 entries of rd_key.
Given:
unsigned long rd_key[4 *(AES_MAXNR + 1)]
with AES_MAXNR equal to 14 and assuming unsigned long is 32 bits, that's 32 * 4 * (14 + 1) = 1920 bits.
But the fact is that you're looking for a...
We can't do the math because you haven't told us what AES_MAXNR is.
At any rate, your key is 64 chars, each two of which represent the hex value of a byte; so it is 32 bytes or 256 bits. Your...