hspkcs11-0.2: Wrapper for PKCS #11 interface

Safe HaskellNone
LanguageHaskell2010

System.Crypto.Pkcs11

Contents

Synopsis

Library

Reading library information

data Info Source #

Instances

Show Info Source # 

Methods

showsPrec :: Int -> Info -> ShowS #

show :: Info -> String #

showList :: [Info] -> ShowS #

Storable Info Source # 

Methods

sizeOf :: Info -> Int #

alignment :: Info -> Int #

peekElemOff :: Ptr Info -> Int -> IO Info #

pokeElemOff :: Ptr Info -> Int -> Info -> IO () #

peekByteOff :: Ptr b -> Int -> IO Info #

pokeByteOff :: Ptr b -> Int -> Info -> IO () #

peek :: Ptr Info -> IO Info #

poke :: Ptr Info -> Info -> IO () #

Slots

Reading slot information

Reading token information

Mechanisms

getMechanismInfo :: Library -> SlotId -> MechType -> IO MechInfo Source #

Retrieves mechanism info

Session management

withSession :: Library -> SlotId -> Bool -> (Session -> IO a) -> IO a Source #

Object attributes

Searching objects

Reading object attributes

Key generation

Key wrapping/unwrapping

Encryption/decryption