Incorrect calculation of ptrInput and ptrOutput in the SA2UL_contextProcess

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • SITSW-8687
    • 11.01.00
    • 11.02.00
    • Hide
      am62a-sk
      am62d-evm
      Show
      am62a-sk am62d-evm

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

      https://github.com/TexasInstruments/mcupsdk-core-k3/blob/k3_next/source/security/crypto/sa3ul/sa3ul.c#L1063-L1063

      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:
              Resolved:

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