diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ckmc/ckmc-manager.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/ckmc/ckmc-manager.h b/src/include/ckmc/ckmc-manager.h index 1ed88bf6..7cc2d9ab 100644 --- a/src/include/ckmc/ckmc-manager.h +++ b/src/include/ckmc/ckmc-manager.h @@ -532,7 +532,9 @@ int ckmc_create_key_aes(size_t size, const char *key_alias, ckmc_policy_s key_po * @param[in] message The message that is signed with a private key * @param[in] hash The hash algorithm used in creating signature * @param[in] padding The RSA padding algorithm used in creating signature \n - * It is used only when the signature algorithm is RSA + * It is used only when the signature algorithm is RSA. If + * @a padding is CKMC_NONE_PADDING you must use CKMC_HASH_NONE + * and the message must be equal to key length * @param[out] ppsignature The pointer to a newly created signature \n * If an error occurs, @a *ppsignature will be null * @return @c 0 on success, @@ -566,7 +568,9 @@ int ckmc_create_signature(const char *private_key_alias, const char *password, c * @param[in] signature The signature that is verified with public key * @param[in] hash The hash algorithm used in verifying signature * @param[in] padding The RSA padding algorithm used in verifying signature \n - * It is used only when the signature algorithm is RSA + * It is used only when the signature algorithm is RSA. If + * @a padding is CKMC_NONE_PADDING you must use CKMC_HASH_NONE + * and the message must be equal to key length * @return @c 0 on success and the signature is valid, * otherwise a negative error value * @retval #CKMC_ERROR_NONE Successful |