Skip to content

Commit

Permalink
fix function not called
Browse files Browse the repository at this point in the history
  • Loading branch information
jocover committed Jan 21, 2024
1 parent 0f674bd commit 2d200da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/crypto/mbedtls_ed25519.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ void mbedtls_edsign_sec_to_pub(uint8_t *pk, const uint8_t *sk)

// write result
size_t output_len;
mbedtls_ecp_point_write_binary(&ed25519, &p, MBEDTLS_ECP_PF_COMPRESSED, &output_len, pk,
ed25519_ecp_point_write_binary(&ed25519, &p, MBEDTLS_ECP_PF_COMPRESSED, &output_len, pk,
EDSIGN_PUBLIC_KEY_SIZE);

// cleanup
Expand Down Expand Up @@ -627,7 +627,7 @@ void mbedtls_edsign_sign(uint8_t *rs, const uint8_t *pk,

// write result to RS[0..32]
size_t output_len;
mbedtls_ecp_point_write_binary(&ed25519, &p, MBEDTLS_ECP_PF_COMPRESSED, &output_len, rs,
ed25519_ecp_point_write_binary(&ed25519, &p, MBEDTLS_ECP_PF_COMPRESSED, &output_len, rs,
EDSIGN_PUBLIC_KEY_SIZE);

// k = sha512(R, pk, m)
Expand Down

0 comments on commit 2d200da

Please sign in to comment.