Updated interface to handle up to and including 256 bit key and different key sizes.