Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data AESKey128 = AESKey128 {
- rawKey128 :: !RawKey128
- expandedKey128 :: ForeignPtr AESKeyStruct
- data AESKey192 = AESKey192 {
- rawKey192 :: !RawKey192
- expandedKey192 :: ForeignPtr AESKeyStruct
- data AESKey256 = AESKey256 {
- rawKey256 :: !RawKey256
- expandedKey256 :: ForeignPtr AESKeyStruct
- data RawKey128 = RKey128 {}
- data RawKey192 = RKey192 {}
- data RawKey256 = RKey256 {}
- data GCM k = GCM {
- _gcmFP :: GCMpc
- _keyFP :: k
- _ctxFP2 :: ForeignPtr CTXStruct
- data GCMpc
- generateKey128 :: Ptr Word64 -> IO (Maybe AESKey128)
- generateKey192 :: Ptr Word64 -> IO (Maybe AESKey192)
- generateKey256 :: Ptr Word64 -> IO (Maybe AESKey256)
- generateGCM :: GetExpanded k => k -> IO (GCM k)
- precomputeGCMdata :: GetExpanded k => k -> GCMpc
- encryptECB :: GetExpanded k => k -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
- decryptECB :: GetExpanded k => k -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
- encryptCTR :: GetExpanded k => k -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
- decryptCTR :: GetExpanded k => k -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
- encryptGCM :: GetExpanded k => k -> GCMpc -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Ptr Word8 -> IO ()
- decryptGCM :: GetExpanded k => k -> GCMpc -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Ptr Word8 -> IO ()
- cipherOnlyGCM :: GetExpanded k => GCM k -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
- decipherOnlyGCM :: GetExpanded k => GCM k -> Ptr Word8 -> Ptr Word8 -> Int -> IO ()
- finishGCM :: GetExpanded k => GCM k -> Ptr Word8 -> IO ()
- aadGCM :: GetExpanded k => GCM k -> Ptr Word8 -> Int -> IO ()
- class GetExpanded a
Documentation
AESKey128 | |
|
AESKey192 | |
|
AESKey256 | |
|
generateGCM :: GetExpanded k => k -> IO (GCM k) Source #
precomputeGCMdata :: GetExpanded k => k -> GCMpc Source #
encryptGCM :: GetExpanded k => k -> GCMpc -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Ptr Word8 -> IO () Source #
decryptGCM :: GetExpanded k => k -> GCMpc -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Word32 -> Ptr Word8 -> Ptr Word8 -> IO () Source #
Piece-meal functions
Internal, will not be exported in a near-future release.
class GetExpanded a Source #
expandedKey