Skip to content

Commit

Permalink
[test-libc] refs fibercrypto#116 FInalized cipher.bip32
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Feb 2, 2020
1 parent f9fb2fc commit 1d0c4af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cgo/tests/check_cipher.bip32.bip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,12 +1047,13 @@ START_TEST(TestDeserializePublicInvalidStrings)
for (size_t i = 0; i < 9; i++) {
tests_Struct test = tests[i];
GoUint8 bufferb[MAXBUFFER];
GoSlice_ b_tmp = {bufferb, 0, MAXBUFFER};
GoUint8 bufferb_tmp[MAXBUFFER];
GoSlice_ b_tmp = {bufferb_tmp, 0, MAXBUFFER};
GoUint32 err = SKY_base58_Decode(test.base58, &b_tmp);
ck_assert_msg(err == SKY_OK, " Iter %d", i);

PublicKey__Handle rest_pub = 0;
GoSlice b;
GoSlice b = {bufferb, 0, MAXBUFFER};
copyGoSlice_toGoSlice(&b, &b_tmp, b_tmp.len);
err = SKY_bip32_DeserializePublicKey(b, &rest_pub);
ck_assert_msg(err == test.err, "Iter %d", i);
Expand Down

0 comments on commit 1d0c4af

Please sign in to comment.