nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
323 stars 142 forks source link

Caam output buffer not aligned #121

Closed GiulioDallaVecchia closed 8 months ago

GiulioDallaVecchia commented 1 year ago

Describe the bug

With MBEDTLS (2.28.1) library when you try to handshake a connection is computed a SHA256. Ouput buffer of the caam peripheral is not aligned to 32bit.

When function names "ssl_prepare_server_key_exchange" is called "unsigned char hash[MBEDTLS_MD_MAX_SIZE]" is allocated on the stack, but is not aligned. (file ssl_srv.c, row number 3519.)

mcuxsusan commented 1 year ago

Hi @VitChmelarNXP, could you please help check if this issue relates to mbedtls and should be raised to mbedtls repository? Thanks a lot.

PatrikNemethNXP commented 1 year ago

Hi @GiulioDallaVecchia, I could not reproduce this issue on my end. Could you please provide additional information on your environment, such as the used board, compiler / IDE and any specific compiler settings you are using?

PatrikNemethNXP commented 8 months ago

I will close the issue for now as not reproducible. The issue can be reopened if it persists and more information is gathered.