Safe Haskell | Unsafe |
---|---|
Language | Haskell98 |
Provide security for computations involving side-effects.
Documentation
This monad represents side-effectful computations with observable effects, and return
values, at security level, at least, l
.
toSecIO :: Sec l a -> SecIO l a Source
Lift pure sensitive values into secure side-effectful computations.
run :: SecIO l a -> IO (Sec l a) Source
Execute secure computations.
This function can be safely given to untrusted code. However, trusted code
should not run an IO
computation returned by untrusted code. After all, its
origin cannot be determined, i.e., it could come from run
or any other IO
operation which could compromise confidentiality or integrity of data.