Skip to content

Commit

Permalink
Update sm9test.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zxm256 authored Apr 20, 2024
1 parent bd10fa3 commit 8125852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sm9test.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ int test_sm9_z256_exchange()
uint8_t idA[5] = {0x41, 0x6C, 0x69, 0x63, 0x65};
uint8_t idB[3] = {0x42, 0x6F, 0x62};
size_t klen = 0x10;
uint8_t skA[200] = {}, skB[200] = {};

uint8_t skA[200] = {};
uint8_t skB[200] = {};
sm9_z256_from_hex(msk.ke, hex_kex);
sm9_z256_point_mul_generator(&(msk.Ppube), msk.ke);
if (sm9_exch_master_key_extract_key(&msk, (char *)idA, sizeof(idA), &keyA) < 0) goto err; ++j;
Expand Down

0 comments on commit 8125852

Please sign in to comment.