cardano-crypto-class-2.2.0.0: Type classes abstracting over cryptography primitives for Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Crypto.Libsodium.MLockedSeed

Synopsis

Documentation

newtype MLockedSeed n Source #

A seed of size n, stored in mlocked memory. This is required to prevent the seed from leaking to disk via swapping and reclaiming or scanning memory after its content has been moved.

Constructors

MLockedSeed 

Instances

Instances details
KnownNat n ⇒ DirectDeserialise (MLockedSeed n) Source # 
Instance details

Defined in Cardano.Crypto.Libsodium.MLockedSeed

Methods

directDeserialise ∷ (MonadST m, MonadThrow m) ⇒ (Ptr CCharCSize → m ()) → m (MLockedSeed n) Source #

KnownNat n ⇒ DirectSerialise (MLockedSeed n) Source # 
Instance details

Defined in Cardano.Crypto.Libsodium.MLockedSeed

Methods

directSerialise ∷ (MonadST m, MonadThrow m) ⇒ (Ptr CCharCSize → m ()) → MLockedSeed n → m () Source #

NFData (MLockedSeed n) Source # 
Instance details

Defined in Cardano.Crypto.Libsodium.MLockedSeed

Methods

rnfMLockedSeed n → () Source #

NoThunks (MLockedSeed n) Source # 
Instance details

Defined in Cardano.Crypto.Libsodium.MLockedSeed

mlockedSeedUseAsCPtrMonadST m ⇒ MLockedSeed n → (Ptr Word8 → m b) → m b Source #

mlockedSeedUseAsSizedPtrMonadST m ⇒ MLockedSeed n → (SizedPtr n → m b) → m b Source #