X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilcpkcs.h;fp=lib%2Fsilccrypt%2Fsilcpkcs.h;h=66bebbbc7280f7f9f7195db45dea979dbeaf5f02;hp=2fd34f7490650fb731eda7c30007401524b1f626;hb=1b4e874f9401653b659a6adec2d2f046f9331586;hpb=7d4fb45c07b67b027b549f46c3689e44e81b3586 diff --git a/lib/silccrypt/silcpkcs.h b/lib/silccrypt/silcpkcs.h index 2fd34f74..66bebbbc 100644 --- a/lib/silccrypt/silcpkcs.h +++ b/lib/silccrypt/silcpkcs.h @@ -66,9 +66,10 @@ typedef enum { * DESCRIPTION * * This context represents any kind of PKCS public key. It can be - * allocated by silc_pkcs_public_key_alloc and is freed by the - * silc_pkcs_public_key_free. The PKCS specific public key context - * can be retrieved by calling silc_pkcs_public_key_get_pkcs. + * allocated by silc_pkcs_public_key_alloc or silc_pkcs_load_public_key + * and is freed by the silc_pkcs_public_key_free. The PKCS specific + * public key context can be retrieved by calling + * silc_pkcs_public_key_get_pkcs. * * SOURCE */ @@ -87,8 +88,10 @@ typedef struct SilcPublicKeyStruct { * * DESCRIPTION * - * This context represents any kind of PKCS private key. The PKCS specific - * key context can be retrieved by calling silc_pkcs_private_key_get_pkcs. + * This context represents any kind of PKCS private key. It can be + * allocated by silc_pkcs_private_key_alloc or more commonly by calling + * silc_pkcs_load_private_key. The PKCS specific key context can be + * retrieved by calling silc_pkcs_private_key_get_pkcs. * * SOURCE */ @@ -555,6 +558,9 @@ SilcPublicKey silc_pkcs_public_key_copy(SilcPublicKey public_key); * `key' of length of `key_len' bytes. Returns FALSE if the `key' * is malformed or unsupported private key type. * + * Usually this function is not needed. Typical application calls + * silc_pkcs_load_private_key instead. + * ***/ SilcBool silc_pkcs_private_key_alloc(SilcPKCSType type, unsigned char *key,