mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
Use z256 and jacobian coordinates as inner presentation of SM2 point
This commit is contained in:
@@ -46,7 +46,8 @@ static int test_sm2_ciphertext(void)
|
||||
error_print();
|
||||
return -1;
|
||||
}
|
||||
C.point = sm2_key.public_key;
|
||||
|
||||
sm2_z256_point_to_bytes(&sm2_key.public_key, (uint8_t *)&(C.point));
|
||||
C.ciphertext_size = tests[i].ciphertext_size;
|
||||
|
||||
if (sm2_ciphertext_to_der(&C, &p, &len) != 1) {
|
||||
|
||||
Reference in New Issue
Block a user