Adds a check to AES decrypt and throws an exception if data is too short.