Skip to content

Commit

Permalink
Update Pebble Tracker Riverrock 2.1.0
Browse files Browse the repository at this point in the history
1. Support new device data sending interface.
2. Add a modem daemon to prevent the modem from being unable to wake up.
3. Fixed the issue where the LCD screen displayed an error when sending data greater than 999.
  • Loading branch information
iloveyou-github committed Dec 24, 2024
1 parent e4edbe0 commit 2b1df28
Show file tree
Hide file tree
Showing 12 changed files with 360 additions and 130 deletions.
7 changes: 1 addition & 6 deletions nrf/applications/ioID/src/ioConnect_core/src/jose/jwk.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,6 @@ JWK *iotex_jwk_generate(enum JWKType type, enum JWKSupportKeyAlg keyalg,
base64url_encode((char *)exported + 1, 32, jwk->Params.ec.x_coordinate, &x_len);
base64url_encode((char *)exported + 1 + 32, 32, jwk->Params.ec.y_coordinate, &y_len);

printf("PuK:\n");
for (int i = 0; i < 64; i++)
printf("%02x", exported[i]);
printf("\n");

jwk->type = JWKTYPE_EC;
if (JWK_SUPPORT_KEY_ALG_P256 == keyalg) {
strncpy(jwk->Params.ec.crv, "P-256", strlen("P-256"));
Expand Down Expand Up @@ -555,7 +550,7 @@ JWK* iotex_jwk_generate_by_secret(uint8_t *secret, unsigned int secret_size,
if( status != PSA_SUCCESS )
return NULL;

printf("Real PublicKey[%d]:\n", exported_length);
printf("PublicKey[%d]:\n", exported_length);
for (int i = 0; i < exported_length; i++)
printf("%02x", exported[i]);
printf("\n");
Expand Down
Loading

0 comments on commit 2b1df28

Please sign in to comment.