hMPC-0.1.0.1: Multiparty Computation in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hgmp

Description

This module collects all hGMP functions used by hMPC.

Synopsis

Documentation

isPrime :: Integer -> Bool Source #

Return True if x is probably prime, else False if x is definitely composite

prevPrime :: Integer -> Integer Source #

Return the greatest probable prime number < x, if any.

invert :: Integer -> Integer -> Integer Source #

Return y such that x*y == 1 modulo m.