Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
type SM4SecretKey = SecretKey SM4 Source #
pattern SM4SecretKey :: ByteString -> SecretKey SM4 Source #
getSM4SecretKey :: SecretKey SM4 -> ByteString Source #
type SM4Ciphertext = Ciphertext SM4 Source #
sm4Encrypt :: SecretKey SM4 -> ByteString -> Maybe SM4Ciphertext Source #
sm4Decrypt :: SecretKey SM4 -> SM4Ciphertext -> Maybe ByteString Source #
sm4EncryptLazy :: SecretKey SM4 -> ByteString -> Maybe SM4LazyCiphertext Source #
sm4DecryptLazy :: SecretKey SM4 -> SM4LazyCiphertext -> Maybe ByteString Source #