botan-bindings-0.0.1.0: Raw Botan bindings
Copyright(c) Leo D 2023
LicenseBSD-3-Clause
Maintainerleo@apotheca.io
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Botan.Bindings.Utility

Description

 
Synopsis

Documentation

botan_constant_time_compare Source #

Arguments

:: ConstPtr Word8

x

-> ConstPtr Word8

y

-> CSize

len

-> IO CInt 

Returns 0 if x[0..len] == y[0..len], -1 otherwise.

botan_scrub_mem Source #

Arguments

:: Ptr a

mem

-> CSize

bytes

-> IO CInt 

pattern BOTAN_FFI_HEX_UPPER_CASE :: (Eq a, Num a) => a Source #

pattern BOTAN_FFI_HEX_LOWER_CASE :: (Eq a, Num a) => a Source #

botan_hex_encode Source #

Arguments

:: ConstPtr Word8

x

-> CSize

len

-> Ptr CChar

y

-> Word32

flags

-> IO CInt 

botan_hex_decode Source #

Arguments

:: ConstPtr CChar

hex_str

-> CSize

in_len

-> Ptr Word8

out

-> Ptr CSize

out_len

-> IO CInt 

botan_base64_encode Source #

Arguments

:: ConstPtr Word8

x

-> CSize

len

-> Ptr CChar

out

-> Ptr CSize

out_len

-> IO CInt 

botan_base64_decode Source #

Arguments

:: ConstPtr CChar

base64_str

-> CSize

in_len

-> Ptr Word8

out

-> Ptr CSize

out_len

-> IO CInt