summaryrefslogtreecommitdiffstats
path: root/include/ncrypto/ncrypto.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-12-02 16:13:32 +0100
committerMiloslav Trmač <mitr@redhat.com>2010-12-02 16:13:32 +0100
commitf1ccfac037766fe7f3db33640fcdca3ba496aeaf (patch)
tree5d1ebf06111134184de135b1226d2d80c289c18c /include/ncrypto/ncrypto.h
parent5e1bd25811ad476fee2cba5ec3ce83d20c74baf6 (diff)
downloadncrypto-f1ccfac037766fe7f3db33640fcdca3ba496aeaf.tar.gz
ncrypto-f1ccfac037766fe7f3db33640fcdca3ba496aeaf.tar.xz
ncrypto-f1ccfac037766fe7f3db33640fcdca3ba496aeaf.zip
Drop ncr_private_key_create ().local
The current API exposes NSS internal mechanisms, drop it for now. Perhaps a better interface can be added in the future.
Diffstat (limited to 'include/ncrypto/ncrypto.h')
-rw-r--r--include/ncrypto/ncrypto.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/ncrypto/ncrypto.h b/include/ncrypto/ncrypto.h
index ff20d8c..329d12a 100644
--- a/include/ncrypto/ncrypto.h
+++ b/include/ncrypto/ncrypto.h
@@ -77,12 +77,10 @@ CK_RV ncr_public_key_create (struct ncr_public_key **key, const void *der,
CK_RV ncr_public_key_export (struct ncr_public_key *key, void *dest,
size_t *dest_size_ptr);
CK_RV ncr_public_key_destroy (struct ncr_public_key *key);
+
/* The PKCS#8 privateKeyInfo structure is used for private keys. "Sensitive"
corresponds to CKA_SENSITIVE. */
-CK_RV ncr_private_key_create (struct ncr_private_key **key, CK_KEY_TYPE type,
- _Bool sensitive, const void *der, size_t der_size,
- const void *public_value,
- size_t public_value_size);
+/* Use algorithm-specific ncr_private_key_create_* for key creation. */
CK_RV ncr_private_key_set_sensitive (struct ncr_private_key *key);
CK_RV ncr_private_key_export (struct ncr_private_key *key, void *dest,
size_t *dest_size_ptr);