Replace magic ints with constants

Add constant values for IV, Tag, and Key length to make the code
slightly less magical.