summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-11-25 18:43:58 +0100
committerMiloslav Trmač <mitr@redhat.com>2010-11-25 23:08:50 +0100
commit4c7d02965c0ad914068eb9edd65b5d918ffbf7be (patch)
tree4de6425356a0db868617e0b1c09e22353354ca3f /include
parent012b4861d820dfd954dcd3563b6366812a30205f (diff)
downloadncrypto-4c7d02965c0ad914068eb9edd65b5d918ffbf7be.tar.gz
ncrypto-4c7d02965c0ad914068eb9edd65b5d918ffbf7be.tar.xz
ncrypto-4c7d02965c0ad914068eb9edd65b5d918ffbf7be.zip
Add ncr_public_key_export_rsa().
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,