get the key and iv vector