Modified to work with only 128bit keys