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) :
But in the HSE FW manual the AAD is optional :
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 ..)
Can you please check , what to do event if the AAD is optional and not used ?
--------------------------------------------------------------------------
BR
Stefano
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.
@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
Hi @StefanoGattazzo ,
This ticket is more related to Cuong side. He will help you with this.
Thanks,
Marian Vilau
Hi MarianVilau,
Pls. let me have the ticket number.
BR
Stefano
Hi @StefanoGattazzo ,
I created a ticket in the FW Crypto Jira project.
BR,
Marian Vilau
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
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