summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-11-29 16:38:22 +0100
committerMiloslav Trmač <mitr@redhat.com>2010-11-29 16:38:22 +0100
commitcb0170516856f563e12d9ff79ad3333f641a2850 (patch)
tree94ba178f299fa686a269dc8442bd1d0bf59f2e36 /include
parente7fa04556e265d65232d6ef2afc6c0c472198011 (diff)
downloadncrypto-cb0170516856f563e12d9ff79ad3333f641a2850.tar.gz
ncrypto-cb0170516856f563e12d9ff79ad3333f641a2850.tar.xz
ncrypto-cb0170516856f563e12d9ff79ad3333f641a2850.zip
Add RSA key generation
Diffstat (limited to 'include')
-rw-r--r--include/ncrypto/ncrypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ncrypto/ncrypto.h b/include/ncrypto/ncrypto.h
index 16d8258..d9508bf 100644
--- a/include/ncrypto/ncrypto.h
+++ b/include/ncrypto/ncrypto.h
@@ -130,6 +130,11 @@ CK_RV ncr_private_key_create_rsa (struct ncr_private_key **key, _Bool sensitive,
CK_RV ncr_private_key_export_rsa (struct ncr_private_key *key,
struct ncr_mpi
mpis[static NCR_RSA_PRIVATE_NUM_MPIS]);
+CK_RV ncr_key_pair_generate_rsa (struct ncr_public_key **public_key,
+ struct ncr_private_key **private_key,
+ CK_MECHANISM_TYPE mech, _Bool sensitive,
+ CK_ULONG modulus_bits,
+ const struct ncr_mpi *public_exponent);
/* Asymmetric operations */