Crypto-4.2.5.1: Collects together existing Haskell cryptographic functions into a package

Safe HaskellSafe-Inferred

Codec.Encryption.RSA.NumberTheory

Documentation

inverse :: Integer -> Integer -> IntegerSource

extEuclGcd :: Integer -> Integer -> (Integer, Integer)Source

simplePrimalityTest :: Integer -> BoolSource

getPrime :: Int -> IO IntegerSource

pg :: Integer -> Integer -> Integer -> IO IntegerSource

isPrime :: Integer -> IO BoolSource

rabinMillerPrimalityTest :: Integer -> IO BoolSource

expmod :: Integer -> Integer -> Integer -> IntegerSource

factor :: Integer -> [Int]Source

testInverse :: Integer -> Integer -> BoolSource

primes :: [Integer]Source

(/|) :: Integer -> Integer -> BoolSource

randomOctet :: Int -> IO StringSource