botan-low
Copyright(c) 2023-2024 Apotheca Labs
(c) 2024-2025 Haskell Foundation
LicenseBSD-3-Clause
Maintainerjoris@well-typed.com, leo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Botan.Low.MPI

Description

 

Documentation

newtype MP Source #

Constructors

MkMP 

withMP :: MP -> (BotanMP -> IO a) -> IO a Source #

mpClear :: MP -> IO () Source #

mpSetFromMP :: MP -> MP -> IO () Source #

mpAddWord32 :: MP -> MP -> Word32 -> IO () Source #

mpSubWord32 :: MP -> MP -> Word32 -> IO () Source #

mpAdd :: MP -> MP -> MP -> IO () Source #

mpSub :: MP -> MP -> MP -> IO () Source #

mpMul :: MP -> MP -> MP -> IO () Source #

mpDiv :: MP -> MP -> MP -> MP -> IO () Source #

mpModMul :: MP -> MP -> MP -> MP -> IO () Source #

mpCmp :: MP -> MP -> IO Int Source #

mpSwap :: MP -> MP -> IO () Source #

mpPowMod :: MP -> MP -> MP -> MP -> IO () Source #

mpLeftShift :: MP -> MP -> Int -> IO () Source #

mpRightShift :: MP -> MP -> Int -> IO () Source #

mpModInverse :: MP -> MP -> MP -> IO () Source #

mpRandBits :: MP -> RNG -> Int -> IO () Source #

mpRandRange :: MP -> RNG -> MP -> MP -> IO () Source #

mpGCD :: MP -> MP -> MP -> IO () Source #

mpSetBit :: MP -> Int -> IO () Source #

mpClearBit :: MP -> Int -> IO () Source #