cryptocipher-0.3.0: Symmetrical Block, Stream and PubKey Ciphers

PortabilityGood
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellSafe-Infered

Number.ModArithmetic

Description

 

Synopsis

Documentation

exponantiation_rtl_binary :: Integer -> Integer -> Integer -> IntegerSource

exponantiation_rtl_binary computes modular exponantiation as b^e mod m using the right-to-left binary exponentiation algorithm (HAC 14.79)

inverse :: Integer -> Integer -> Maybe IntegerSource

inverse computes the modular inverse as in g^(-1) mod m