{-| Module : Botan.Bindings.ECDSA Description : Algorithm specific key operations: ECDSA Copyright : (c) Leo D, 2023 License : BSD-3-Clause Maintainer : leo@apotheca.io Stability : experimental Portability : POSIX -} {-# LANGUAGE CApiFFI #-} module Botan.Bindings.PubKey.ECDSA where import Botan.Bindings.MPI import Botan.Bindings.Prelude import Botan.Bindings.PubKey foreign import capi safe "botan/ffi.h botan_privkey_load_ecdsa" botan_privkey_load_ecdsa :: Ptr BotanPrivKey -- ^ __key__ -> BotanMP -- ^ __scalar__ -> ConstPtr CChar -- ^ __curve_name__ -> IO CInt foreign import capi safe "botan/ffi.h botan_pubkey_load_ecdsa" botan_pubkey_load_ecdsa :: Ptr BotanPubKey -- ^ __key__ -> BotanMP -- ^ __public_x__ -> BotanMP -- ^ __public_y__ -> ConstPtr CChar -- ^ __curve_name__ -> IO CInt