2174109_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2174109_en-US

2174109_en-US

Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

Hello Team,

I have received the following from Lear:

------------------------------------------------------------------------------------

there is a small problem in the service of “HSE AEAD Service” . I am trying the encrypt in GCM mode :


In the Crypto driver the secondary input is a must and is checked against in the Crypto_ProcessJob method (see below array used in Crypto_GetJobErrorForSecondaryInputPtr method) :


StefanoGattazzo_0-1758615227426.png



But in the HSE FW manual the AAD is optional :


StefanoGattazzo_1-1758615227475.png



When I call this : Csm_AEADEncrypt(CsmConf_CsmJob_CsmJob_AES128_ENC_SECCNT_TMP,CRYPTO_OPERATIONMODE_SINGLECALL,&TempPlainTxt[0],16u,NULL_PTR,0u,&TempCipherSecCnt[0],&TagLenPtr,&TempTagSecCnt[0],&TagLenPtr);


I get an error that the 2nd input is a NULL (inside the Crypto_ProcessJob method ..)


StefanoGattazzo_2-1758615227494.png




Can you please check , what to do event if the AAD is optional and not used ?

--------------------------------------------------------------------------


BR
Stefano

Board: S32K344Component: HSE FWPriority: HIGHSECURITY_CRYPTOType: ISSUERe: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

cuongnguyenphu_0-1762409288063.png


According to AUTOSAR specifications, AEADENCRYPT and AEADDECRYPT require SecondaryInputPointer and SecondaryLength. Under HSE firmware, these parameters may be ignored later depending on its processing logic.


Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

@MarianVilau  @StefanoGattazzo 
As discussed with Marian, I moved this ticket to https://jira.sw.nxp.com/browse/CESSCEP-23 to support from our project
I will update the feedback on this community soon

Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

Hi @StefanoGattazzo ,
This ticket is more related to Cuong side. He will help you with this.

Thanks,
Marian Vilau

Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driverHello,

https://jira.sw.nxp.com/browse/FWCRYPTO-198

BR,
Marian
Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

Hi MarianVilau,

Pls. let me have the ticket number.

BR

Stefano

Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

Hi @StefanoGattazzo ,

I created a ticket in the FW Crypto Jira project.

BR,
Marian Vilau

Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

Hi MarianVilau,

what I know, as this is an issue from Lear,  is :

JLR ePDU , S32K344 (A/B SWAP HSE FW 0.2.55)

I know also they temporary solve the issue with a DummyVariable pointer.


BR

Stefano

Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver

Hi @StefanoGattazzo ,


I am analyzing the requirements, will provide response soon.

Meanwhile please provide the demo app version and fw version that you use .


Regards

Marian Vilau

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 06:18 AM
Updated by: