Copyright | (c) Max Amanshauser 2021 |
---|---|
License | MIT |
Maintainer | max@lambdalifting.org |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- scalarmult_bytes :: Int
- scalarmult_scalarbytes :: Int
- c_scalarmult :: Ptr CChar -> Ptr CChar -> Ptr CChar -> IO CInt
- c_scalarmult_base :: Ptr CChar -> Ptr CChar -> IO CInt
- newtype GroupElement = GE {
- unGE :: ByteString
- newtype Scalar = Sc {
- unSc :: ByteString
Documentation
scalarmult_bytes :: Int Source #
Size of a group element string representation for
crypto_scalarmult
.
scalarmult_scalarbytes :: Int Source #
Size of a integer string representation for crypto_scalarmult
.
newtype GroupElement Source #
A group element.
GE | |
|
Instances
A scalar integer.
Sc | |
|
Instances
Data Scalar Source # | |
Defined in Crypto.Saltine.Internal.ScalarMult gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Scalar -> c Scalar # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Scalar # toConstr :: Scalar -> Constr # dataTypeOf :: Scalar -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Scalar) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Scalar) # gmapT :: (forall b. Data b => b -> b) -> Scalar -> Scalar # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Scalar -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Scalar -> r # gmapQ :: (forall d. Data d => d -> u) -> Scalar -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Scalar -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Scalar -> m Scalar # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Scalar -> m Scalar # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Scalar -> m Scalar # | |
Generic Scalar Source # | |
Show Scalar Source # | |
NFData Scalar Source # | |
Defined in Crypto.Saltine.Internal.ScalarMult | |
Eq Scalar Source # | |
Ord Scalar Source # | |
Hashable Scalar Source # | |
Defined in Crypto.Saltine.Internal.ScalarMult | |
IsEncoding Scalar Source # | |
Defined in Crypto.Saltine.Internal.ScalarMult encode :: Scalar -> ByteString Source # decode :: ByteString -> Maybe Scalar Source # encoded :: (Choice p, Applicative f) => p Scalar (f Scalar) -> p ByteString (f ByteString) Source # | |
type Rep Scalar Source # | |
Defined in Crypto.Saltine.Internal.ScalarMult type Rep Scalar = D1 ('MetaData "Scalar" "Crypto.Saltine.Internal.ScalarMult" "saltine-0.2.1.0-inplace" 'True) (C1 ('MetaCons "Sc" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) |