add a simple alias to SecureMem for future refactoring
Signed-off-by: Vincent Hanquez <vincent@snarc.org>
This commit is contained in:
parent
c991abda23
commit
a82a544fec
@ -18,6 +18,7 @@ module Crypto.Internal.Memory
|
||||
, bytesAlloc
|
||||
, bytesLength
|
||||
, withBytes
|
||||
, SecureBytes
|
||||
) where
|
||||
|
||||
import Data.Word
|
||||
@ -29,9 +30,12 @@ import Foreign.ForeignPtr
|
||||
import Foreign.Storable (pokeElemOff)
|
||||
import Foreign.Marshal.Alloc
|
||||
import Foreign.Marshal.Utils (copyBytes)
|
||||
import Data.SecureMem (SecureMem)
|
||||
|
||||
data Bytes = Bytes (MutableByteArray# RealWorld)
|
||||
|
||||
type SecureBytes = SecureMem
|
||||
|
||||
------------------------------------------------------------------------
|
||||
newBytes :: Int -> IO Bytes
|
||||
newBytes (I# sz) = IO $ \s ->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user