mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Typo in PKCS#11 module
This commit is contained in:
parent
10a9dd35ea
commit
4ffcd2f9c3
2 changed files with 3 additions and 2 deletions
|
|
@ -189,7 +189,7 @@ int pkcs11_sign( pkcs11_context *ctx,
|
|||
}
|
||||
|
||||
sig_len = ctx->len;
|
||||
if ( hashlen > ctx_len || asn_len > sig_len ||
|
||||
if ( hashlen > sig_len || asn_len > sig_len ||
|
||||
hashlen + asn_len > sig_len )
|
||||
{
|
||||
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue