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.PubKey.Sign

Description

 
Synopsis

Public key signatures

withSign :: Sign -> (BotanPKOpSign -> IO a) -> IO a Source #

signCreate Source #

Arguments

:: PrivKey

key

-> EMSAName

hash_and_padding

-> SigningFlags

flags

-> IO Sign

op

signOutputLength Source #

Arguments

:: Sign

op

-> IO Int

olen

signUpdate Source #

Arguments

:: Sign

op

-> ByteString

in[]

-> IO () 

signFinish Source #

Arguments

:: Sign

op

-> RNG

rng

-> IO ByteString

sig[] TODO: Signature type NOTE: This function is still highly suspect

Finish signing

Depending on the algorithm, signatures produced using StandardFormatSignature may have trailing null bytes.