Move byte functions into their own static class. Use in Engine and PinEntry.