aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-06 13:30:30 -0400
committerJack Lloyd <[email protected]>2017-09-06 13:31:12 -0400
commit729ee64431748d898a2a53baa8f8e17f2925e16e (patch)
tree6cb50725d51f1d1ac6fb0bd4730a7ab6cfd084df /src/lib/ffi/ffi.h
parent5a2db384a328dde3d5059fcdc2ebc1ff9a6039a7 (diff)
Add support for computing SM2 ZA field to FFI
This is a contribution from Ribose Inc.
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r--src/lib/ffi/ffi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h
index 565d5ce7b..005d32eee 100644
--- a/src/lib/ffi/ffi.h
+++ b/src/lib/ffi/ffi.h
@@ -961,6 +961,12 @@ BOTAN_DLL int botan_privkey_load_sm2_enc(botan_privkey_t* key,
const botan_mp_t scalar,
const char* curve_name);
+BOTAN_DLL int botan_pubkey_sm2_compute_za(uint8_t out[],
+ size_t* out_len,
+ const char* ident,
+ const char* hash_algo,
+ const botan_pubkey_t key);
+
/*
* Public Key Encryption
*/