CRC engine is reseted to default when crypto lib is used.
Hello st forum,
I'm currently working on mcu STM32G0B1VCI6; the part of the code that I'm using is considering the setup of the crypto lib and the CRC engine. However, I noted that the CRC configuration is being changed automatically when some crypto functions are invoked. Example:
- Initialize CRC engine with specific configuration.
- Initialize crypto Lib by calling cmox_initialize
- Call cmox_ecdsa_verify to verify signature.
- Calculate some CRC of certain memory block.
The result in step 4 is different than the expected (compared against an online tool) but if the CRC is calculated between step 2 and 3, the CRC matches.
I wonder if crypto library forces a reset in the CRC registers for its own purposes.
Is this a bug in the crypto lib or is expected? if it is expected how can I use the desired CRC configuration without impacting crypto lib?
I hope you can help,
regards.
José Daniel
