Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6712 Discussions

ipp-crypto:crypto mb,internal/common/ifma_cvt52.h:from 8 buffers regular (radix2^64) to mb8 redundan

liu666
Beginner
503 Views

您好,我在 crypto_mb 中使用了 internal/common/ifma_cvt52.h 加载数据(ifma_HexStr8_to_mb8),然后返回(ifma_mb8_to_HexStr8)。但结果没有恢复到原来的值?

 

0 Kudos
3 Replies
Ruqiu_C_Intel
Moderator
492 Views

Dear Liu666,

Can you translate your question into English? We encourage all Intel IPP Community users to post content in English, as the Intel IPP Community is an open discussion thread that allows all IPP users around the world to understand posts and help each other.

 

-Ruqiu

 

0 Kudos
liu666
Beginner
486 Views

1. Hello, I used internal/common/ifma_cvt52.h in crypto_mb to load the data (ifma_HexStr8_to_mb8) and then return (ifma_mb8_to_HexStr8). But the result is not restored to the original value?屏幕截图 2024-01-05 101310.png

2. Or can you write a test case to call crypto_mb/ec_sm2.h ::

EXTERN_C mbx_status mbx_sm2_ecdsa_sign_mb8(int8u* pa_sign_r[8],
                                           int8u* pa_sign_s[8],
                               const int8u* const pa_user_id[8],
                                        const int user_id_len[8],
                               const int8u* const pa_msg[8],
                                        const int msg_len[8],
                              const int64u* const pa_eph_skey[8],
                              const int64u* const pa_reg_skey[8],
                              const int64u* const pa_pubx[8],
                              const int64u* const pa_puby[8],
                              const int64u* const pa_pubz[8],
                                           int8u* pBuffer);
The test case I wrote would report an error at ifma_mb8_to_HexStr8, so the first step came up.
 

 

0 Kudos
Ruqiu_C_Intel
Moderator
398 Views

Dear Liu666,

Thank you for posting your question here.

Can you provide out more information for this issue?

1. Which IPP Crypto version are you using? as well as OS, CPU information, etc.?

2. It's always good to provide out a simple reproducer as well as introduction about how to reproduce the issue, then other community users might help you find out root cause quickly.

 

- Ruqiu

0 Kudos
Reply