summaryrefslogtreecommitdiff
path: root/lib/pkcs11.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pkcs11.c')
-rw-r--r--lib/pkcs11.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/pkcs11.c b/lib/pkcs11.c
index 91db86c7d7..e08d6937ae 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -2849,6 +2849,21 @@ pkcs11_sign (struct ck_function_list *module,
}
ck_rv_t
+pkcs11_generate_key_pair (struct ck_function_list *module,
+ ck_session_handle_t sess,
+ struct ck_mechanism *mechanism,
+ struct ck_attribute *pub_templ,
+ unsigned long pub_templ_count,
+ struct ck_attribute *priv_templ,
+ unsigned long priv_templ_count,
+ ck_object_handle_t *pub,
+ ck_object_handle_t *priv)
+{
+ return (module)->C_GenerateKeyPair (sess, mechanism, pub_templ, pub_templ_count,
+ priv_templ, priv_templ_count, pub, priv);
+}
+
+ck_rv_t
pkcs11_decrypt_init (struct ck_function_list *module,
ck_session_handle_t sess,
struct ck_mechanism *mechanism,