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 HaskellNone
LanguageGHC2021

Botan.Low.MPI

Description

 

Documentation

newtype MP Source #

Constructors

MkMP 

Fields

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

mpDestroy :: MP -> IO () Source #

mpToHex :: MP -> IO ByteString Source #

mpToStr :: MP -> Int -> IO ByteString Source #

mpClear :: MP -> IO () Source #

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

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

mpCopy :: MP -> IO MP Source #

mpSetFromStr :: MP -> ByteString -> IO () Source #

mpSetFromRadixStr :: MP -> ByteString -> Int -> IO () Source #

mpNumBits :: MP -> IO Int Source #

mpNumBytes :: MP -> IO Int Source #

mpToBin :: MP -> IO ByteString Source #

mpFromBin :: MP -> ByteString -> IO () Source #

mpToWord32 :: MP -> IO Word32 Source #

mpIsPositive :: MP -> IO Bool Source #

mpIsNegative :: MP -> IO Bool Source #

mpFlipSign :: MP -> IO () Source #

mpIsZero :: MP -> IO Bool 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 #

mpEqual :: MP -> MP -> IO Bool 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 #

mpIsPrime :: MP -> RNG -> Int -> IO Bool Source #

mpGetBit :: MP -> Int -> IO Bool Source #

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

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