set the encryption mode to the one we want