pk_sign() now requires non-NONE md_alg for ECDSA
This commit is contained in:
parent
fa44f20b9f
commit
b8cfe3f0d9
5 changed files with 11 additions and 42 deletions
|
@ -377,7 +377,8 @@ int pk_verify_ext( pk_type_t type, const void *options,
|
|||
* \note If hash_len is 0, then the length associated with md_alg
|
||||
* is used instead, or an error returned if it is invalid.
|
||||
*
|
||||
* \note md_alg may be POLARSSL_MD_NONE, only if hash_len != 0
|
||||
* \note For RSA, md_alg may be POLARSSL_MD_NONE if hash_len != 0.
|
||||
* For ECDSA, md_alg may never be POLARSSL_MD_NONE.
|
||||
*/
|
||||
int pk_sign( pk_context *ctx, md_type_t md_alg,
|
||||
const unsigned char *hash, size_t hash_len,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue