summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ncrypto/ncrypto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ncrypto/ncrypto.h b/include/ncrypto/ncrypto.h
index c4de81e..9f5a3f4 100644
--- a/include/ncrypto/ncrypto.h
+++ b/include/ncrypto/ncrypto.h
@@ -82,10 +82,16 @@ CK_RV ncr_private_key_create (struct ncr_private_key **key, CK_KEY_TYPE type,
size_t public_value_size);
CK_RV ncr_private_key_destroy (struct ncr_private_key *key);
+ /* RSA keys */
+
CK_RV ncr_public_key_create_rsa (struct ncr_public_key **key,
const void *modulus, size_t modulus_size,
const void *public_exponent,
size_t public_exponent_size);
+CK_RV ncr_public_key_export_rsa (struct ncr_public_key *key,
+ void *modulus, size_t *modulus_size_ptr,
+ void *public_exponent,
+ size_t *public_exponent_size_ptr);
CK_RV ncr_private_key_create_rsa (struct ncr_private_key **key,
const void *modulus, size_t modulus_size,
const void *public_exponent,