Incorrect calculation of ptrInput and ptrOutput in the SA2UL_contextProcess

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • SITSW-8686
    • 11.01.00
    • 11.02.00
    • Hide
      am243x-evm
      am243x-lp
      am64xx-evm
      am64xx-sk
      Show
      am243x-evm am243x-lp am64xx-evm am64xx-sk

      The `ptrInput` and `ptrOutput` are advanced incorrectly at the following place

      https://github.com/TexasInstruments/tifs-mcu-common/blob/8d201ae32d22d8f4db9d86f1c51112b19486c568/drivers/crypto/sa2ul/sa2ul.c#L1310

      This leads to the incorrect hash calculation for buffers of size greater than 8MB.

      The pointers needs to be advanced like so

      ptrInput    = ptrInput + (maxLength);
      ptrOutput   = ptrOutput + (maxLength); 

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-6206 - Incorrect calculation of ptrInput a...
                SYNCHRONIZED
                • Last Sync Date: