summaryrefslogtreecommitdiffstats
path: root/include/ncrypto
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-11-30 19:36:37 +0100
committerMiloslav Trmač <mitr@redhat.com>2010-11-30 21:59:42 +0100
commita4427401d8bcb95d07ee0d48b8dce8d1ad70394d (patch)
tree50e8807846fbf2303df08cab28d2683ce6733a8d /include/ncrypto
parentcd4794e966303075633d6ac28e98279282734fd7 (diff)
downloadncrypto-a4427401d8bcb95d07ee0d48b8dce8d1ad70394d.tar.gz
ncrypto-a4427401d8bcb95d07ee0d48b8dce8d1ad70394d.tar.xz
ncrypto-a4427401d8bcb95d07ee0d48b8dce8d1ad70394d.zip
Use subjectPublicKeyInfo for public keys in DER form
Also avoid subjectPublicKeyInfo encoding/decoding when handling RSA key details.
Diffstat (limited to 'include/ncrypto')
-rw-r--r--include/ncrypto/ncrypto.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ncrypto/ncrypto.h b/include/ncrypto/ncrypto.h
index d9508bf..3938b45 100644
--- a/include/ncrypto/ncrypto.h
+++ b/include/ncrypto/ncrypto.h
@@ -71,8 +71,9 @@ CK_RV ncr_symm_key_destroy (struct ncr_symm_key *key);
struct ncr_public_key;
struct ncr_private_key;
-CK_RV ncr_public_key_create (struct ncr_public_key **key, CK_KEY_TYPE type,
- const void *der, size_t der_size);
+/* The X.509v3 subjectPublicKeyInfo structure is used for public keys. */
+CK_RV ncr_public_key_create (struct ncr_public_key **key, const void *der,
+ size_t der_size);
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);