Number Theory And Cryptography In Discrete Mathematics, What kind of mathematics is involved? The theory has ties with probability theory.