Merge pull request #1309 from SparkiDev/pss_var_salt_len

Add support in PSS for salt lengths up to hash length
This commit is contained in:
John Safranek
2018-01-10 11:00:47 -08:00
committed by GitHub
6 changed files with 447 additions and 53 deletions

View File

@@ -4145,7 +4145,7 @@ static int CreateECCEncodedSig(byte* sigData, int sigDataSz, int hashAlgo)
* based on the digest of the signature data.
*
* ssl The SSL/TLS object.
* hashAlgo The signature algorithm used to generate signature.
* sigAlgo The signature algorithm used to generate signature.
* hashAlgo The hash algorithm used to generate signature.
* decSig The decrypted signature.
* decSigSz The size of the decrypted signature.
@@ -4170,7 +4170,7 @@ static int CheckRSASignature(WOLFSSL* ssl, int sigAlgo, int hashAlgo,
if (ret < 0)
return ret;
/* PSS signature can be done in-pace */
/* PSS signature can be done in-place */
ret = CreateRSAEncodedSig(sigData, sigData, sigDataSz,
sigAlgo, hashAlgo);
if (ret < 0)