remove extraneous build gates and fix whitespace justification in a comment (peer review re PR #4772).

This commit is contained in:
Daniel Pouzzner
2022-01-20 16:43:32 -06:00
parent 386aac9694
commit bfada558bd
3 changed files with 55 additions and 56 deletions

View File

@@ -551,9 +551,9 @@ static const char* TagString(byte tag)
/* Returns whether ASN.1 item is an integer and the Most-Significant Bit is set.
*
* @param [in] asn ASN.1 items to encode.
* @param [in] data_a Data to place in each item. Lengths set were not known.
* @param [in] i Index of item to check.
* @param [in] asn ASN.1 items to encode.
* @param [in] data_a Data to place in each item. Lengths set were not known.
* @param [in] i Index of item to check.
* @return 1 when ASN.1 item is an integer and MSB is 1.
* @erturn 0 otherwise.
*/

View File

@@ -2558,13 +2558,11 @@ static int wc_RsaFunctionSync(const byte* in, word32 inLen, byte* out,
ret = RSA_BUFFER_E;
}
#ifndef WOLFSSL_XILINX_CRYPT // NOLINT(readability-redundant-preprocessor)
if (ret == 0) {
*outLen = keyLen;
if (mp_to_unsigned_bin_len(tmp, out, keyLen) != MP_OKAY)
ret = MP_TO_E;
}
#endif
#else
(void)type;
(void)key;