I am using openssl API for encryption in my project. Currently i have a char key[64] =' some hex value' which i need to convert to long long int so that i can pass it to AES_key_wrap() function in openssl. I have used strtol() and sscanf() but both of them result in gving = 4738338 as result... not sure what i am missing here... any help is highly appreciated..

Thanks
Prashanth

code snippet
u8 DEK[64];
long long test;

sprintf(&DEK, "%s%s", aes,xts);
or

test = strtoul(DEK, NULL, 0);