intel / cryptography-primitives

Apache License 2.0
318 stars 86 forks source link

Unclear usage of nScalars in ippsGFpECScratchBufferSize() #77

Closed xiaonan-INTC closed 1 month ago

xiaonan-INTC commented 4 months ago

Refer to guidance(ipp-crypto_developer-guide-reference_2021.9)/source code(ipp-crypto/sources/ippcp/pcpgfpecbufsize.c), In function: IppStatus ippsGFpECScratchBufferSize(int nScalars, const IppsGFpECState pEC, int pBufferSize); Usage of parameter nScalars is not clear and without explanation, could add it to guidance/source code?

paveldyakov commented 4 months ago

Hi @xiaonan-INTC, sorry for the delay in response. Let us investigate your question

ElenaTyuleneva commented 2 months ago

Hi @xiaonan-INTC , the required value of the nScalars passed into ippsGFpECScratchBufferSize depends on the processing API used after - different processing functions require different scratchBuffer.

We've updated the documentation with this guidance for each processing API, it will be available in the next product release.

If you write me down which API sequence you are using, I can answer you here directly.

Elena

xiaonan-INTC commented 1 month ago

updated the documentation with this guidance for each processing API,

Thanks, ElenaTyuleneva, I will refer to the documentation of next product release, that is OK.