Refs #1301 -- moved constant time code into it's own .c and .h files