I am using openssl API for encryption in my project. Currently i have a char key =' 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..
long long test;
sprintf(&DEK, "%s%s", aes,xts);
test = strtoul(DEK, NULL, 0);