Added createKey() helper function. Updated constants used for
createKey() and createIV()