I need to do math functions (mod, pow etc) on large numbers which are currently in hex eg DB7C2ABF62E35E644076BEAD342B

I thought of longs but there too small.
then i came across bigint but im not sure if there if limitations with them ?
Is there a data type where i can store them in hex ? if so would i need to convert them before i did any calculations ?