Parameters for OAEP padding.
Constructors
OAEPParamsoaepHash :: hashhash function to use
oaepMaskGenAlg :: MaskGenAlgorithm seed outputmask Gen algorithm to use
oaepLabel :: Maybe ByteStringoptional label prepended to message
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05
Modulecryptonite-0.30Haskell2010
OAEP padding scheme. See http://en.wikipedia.org/wiki/Optimal_asymmetric_encryption_padding.
Parameters for OAEP padding.
OAEPParamsoaepHash :: hashhash function to use
oaepMaskGenAlg :: MaskGenAlgorithm seed outputmask Gen algorithm to use
oaepLabel :: Maybe ByteStringoptional label prepended to message
Default Params with a specified hash function.
pad :: HashAlgorithm hash=> ByteStringSeed
-> OAEPParams hash ByteString ByteStringOAEP params to use
-> Intsize of public key in bytes
-> ByteStringMessage pad
-> Either Error ByteStringPad a message using OAEP.
unpad :: HashAlgorithm hash=> OAEPParams hash ByteString ByteStringOAEP params to use
-> Intsize of public key in bytes
-> ByteStringencoded message (not encrypted)
-> Either Error ByteStringUn-pad a OAEP encoded message.