Utility Functions

These functions support number theory operations used in cryptographic primitives.