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

`uint8_t` isn't valid without a `#include <stdint.h>` in the file.