fix compiler warning and change AES key output to hex
change set AES key/IV functions to use memcpy rather than strncpy