diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-11-30 19:36:37 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-11-30 21:59:42 +0100 |
commit | a4427401d8bcb95d07ee0d48b8dce8d1ad70394d (patch) | |
tree | 50e8807846fbf2303df08cab28d2683ce6733a8d /include | |
parent | cd4794e966303075633d6ac28e98279282734fd7 (diff) | |
download | ncrypto-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')
-rw-r--r-- | include/ncrypto/ncrypto.h | 5 |
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); |