-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues identified in TSIP on RX72N #8201
Conversation
Signed-off-by: Gaurav Kumar Singh <[email protected]>
Signed-off-by: Gaurav Kumar Singh <[email protected]>
Can one of the admins verify this patch? |
Hi @gauravks , Thank you for the PR and email. We will review and I'll coordinate a contributor agreement if needed directly. Thanks, |
@@ -3599,6 +3599,10 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out, | |||
ret = wc_CryptoCb_RsaPad(in, inLen, out, | |||
&outLen, rsa_type, key, rng, &padding); | |||
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) { | |||
if (ret < 0) { | |||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check indent here. Might be tabs vs. spaces.
@@ -250,13 +250,13 @@ int wc_tsip_RsaFunction(wc_CryptoInfo* info, TsipUserCtx* tuc) | |||
return BAD_FUNC_ARG; | |||
} | |||
if (ret == 0) { | |||
info->pk.rsa.outLen = cipher.data_length; | |||
*(info->pk.rsa.outLen) = cipher.data_length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same. Check indent here. Might be tabs vs. spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. I have one miner request.
hashData.pdata = (uint8_t*)info->pk.rsa.in; | ||
hashData.data_length = info->pk.rsa.inLen; | ||
hashData.pdata = (uint8_t*)info->pk.rsa.out; | ||
hashData.data_length = info->pk.rsa.outLen; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be *(info->pk.rsa.outLen) as well.
Description
Fix issues in TSIP Decryption and Verification while testing on RX72N
Testing
Tested on Custom RX72N board
Checklist