BigNum is an opaque object representing a big number.
ModuleHsOpenSSL-0.11.7.10Haskell2010
OpenSSL.BN
BN - multiprecision integer arithmetics
- 2 types
- 17 values
- PackageHsOpenSSL-0.11.7.10
- Exports19
- LanguageHaskell2010
- LicenceLicenseRef-PublicDomain
- SourceBN.hsc
Type
2 declarationsAllocation
5 declarationsThis is an alias to integerToBN.
Conversion from/to Integer
5 declarationsThis is an alias to bnToInteger.
Return a new, alloced BIGNUM.
Convert a BIGNUM to an Integer.
Convert an Integer to an MPI. See bnToMPI for the format
Convert an MPI to an Integer. See bnToMPI for the format
Computation
1 declarationmodexp a p m computes a to the p-th power modulo m.
Random number generation
6 declarationsReturn a strongly random number in the range 0 <= x < n where the given filter function returns true.
Return a random number in the range 0 <= x < n where the given filter function returns true.
Return a strongly random number in the range 0 <= x < n
Return a random number in the range 0 <= x < n
Return a strongly random number in the range 0 < x < n
Return a random number in the range 0 < x < n