Why does ECDSAsign change a const parameter?
Hello,
the cryptolib offers the function ECDSAsign. In the ecc.h it is declared as
int32_t ECDSAsign(const uint8_t *P_pDigest,
int32_t P_digestSize,
const ECDSAsignature_stt *P_pSignature,
const ECDSAsignCtx_stt *P_pSignCtx,
membuf_stt *P_pMemBuf);Testing shows that P_pSignature gets changed when ECDSAsign is invoked. That is compliant with the documentation (UM1924, Rev 7, page 138, table 138). I thought const parameters may not be changed by a function. Why is the parameter set as const?
Best regards
