module Botan.Low.PubKey.SM2 (
privKeyLoadSM2
, pubKeyLoadSM2
) where
import Botan.Bindings.PubKey.SM2
import Botan.Low.MPI
import Botan.Low.PubKey
import Data.ByteString (ByteString)
privKeyLoadSM2
:: MP
-> ByteString
-> IO PrivKey
privKeyLoadSM2 :: MP -> ByteString -> IO PrivKey
privKeyLoadSM2 = (Ptr BotanPrivKey -> BotanMP -> ConstPtr CChar -> IO CInt)
-> MP -> ByteString -> IO PrivKey
mkPrivKeyLoad1_name Ptr BotanPrivKey -> BotanMP -> ConstPtr CChar -> IO CInt
botan_privkey_load_sm2
pubKeyLoadSM2
:: MP
-> MP
-> ByteString
-> IO PubKey
pubKeyLoadSM2 :: MP -> MP -> ByteString -> IO PubKey
pubKeyLoadSM2 = (Ptr BotanPubKey
-> BotanMP -> BotanMP -> ConstPtr CChar -> IO CInt)
-> MP -> MP -> ByteString -> IO PubKey
mkPubKeyLoad2_name Ptr BotanPubKey -> BotanMP -> BotanMP -> ConstPtr CChar -> IO CInt
botan_pubkey_load_sm2