CryptoLib
CryptoLib copied to clipboard
💡 [Magic Number Removal] - CBC Padding parameters in AOS and TM
Summary
Look at and review the correct bounds for CBC Padding parameters in AOS and TM, then set thsese as #defines instead of magic numbers (e.g. 16)
Don't blanket use 16 - we need to understand the actual limitations in conjunction with the telemetry frames. (e.g. what happens if we aren't using idle frames... does CBC auto-pad out the whole frame?)
Use Case
Will be needed in future for telemetry support
Examine: if (*len_ingest < tc_sdls_processed_frame->tc_header.fl + 1) // Specified frame length larger than provided frame!
as well in crypto_tc.c - are we able to make it a != to tighten it up, or does this negatively affect CBC processing?