aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-06-30 10:57:01 -0400
committerJack Lloyd <[email protected]>2017-06-30 10:57:01 -0400
commit884fd85a05e055e497a68a5d2b0bd937290bfca4 (patch)
tree21e3af1a76855342b9014c909cf427e71eee1a23 /src/lib/ffi/ffi.h
parentc09e7780e1ce3aa6eab5e7fb8fb4ed504493fd37 (diff)
parenta296f8e629d968642989d9d385c2b089840cf6fb (diff)
Merge GH #1082 Add support for SM2 signature scheme
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r--src/lib/ffi/ffi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h
index a179e5fa4..4a7723974 100644
--- a/src/lib/ffi/ffi.h
+++ b/src/lib/ffi/ffi.h
@@ -882,6 +882,15 @@ BOTAN_DLL int botan_privkey_load_ecdh(botan_privkey_t* key,
const botan_mp_t scalar,
const char* curve_name);
+BOTAN_DLL int botan_pubkey_load_sm2(botan_pubkey_t* key,
+ const botan_mp_t public_x,
+ const botan_mp_t public_y,
+ const char* curve_name);
+
+BOTAN_DLL int botan_privkey_load_sm2(botan_privkey_t* key,
+ const botan_mp_t scalar,
+ const char* curve_name);
+
/*
* Public Key Encryption
*/