Search found 8 matches

by ecktello
Tue Jun 27, 2023 2:45 am
Forum: General Discussion
Topic: Netif with wifi in APSTA mode
Replies: 0
Views: 2047

Netif with wifi in APSTA mode

Hello all, I'm configuring wifi to be in APSTA mode to run a webserver. One question I have is when I use esp_netif_init(), can I use esp_netif_create_default_wifi_sta() and esp_netif_create_default_wifi_ap() in sequence to have the netif interface automatically configured, or do I have to handle th...
by ecktello
Sun Jun 18, 2023 4:34 am
Forum: General Discussion
Topic: ESP32 ECP Keypair JWT header formatting
Replies: 5
Views: 2307

Re: ESP32 ECP Keypair JWT header formatting

Sorry for the long time to get back - some things came up. I went to the lab and found that when I write out the private X and private Y of the ecp keypair using mbedtls_ecp_point_write_binary, the binary strings are in fact 256 bytes long, and the last 32 are always hexadecimal pairs. I was not pri...
by ecktello
Sun Jun 04, 2023 5:38 pm
Forum: General Discussion
Topic: ESP32 ECP Keypair JWT header formatting
Replies: 5
Views: 2307

Re: ESP32 ECP Keypair JWT header formatting

Are these last 64 or 66 characters the hexadecimal octets I should be concatenating to form the JWT signature? They should be. However, each value must be 256 bits, i.e. 32 bytes, i.e. 64 hex digits. Not sure why you're getting 66 (=33 bytes). Alright, that's what I figured but I wanted someone wit...
by ecktello
Sat Jun 03, 2023 2:31 pm
Forum: General Discussion
Topic: ESP32 ECP Keypair JWT header formatting
Replies: 5
Views: 2307

Re: ESP32 ECP Keypair JWT header formatting

Does https://esp32.com/viewtopic.php?f=13&t=19875 help? I solved the first question (it should be private_X and private_Y by the documentation). Not exactly. Their example uses RSA, I *have* to use ECDSA and the issue with this is the conversion of the ECDSA signature into octet sequences to then b...
by ecktello
Fri Jun 02, 2023 9:12 pm
Forum: General Discussion
Topic: ESP32 ECP Keypair JWT header formatting
Replies: 5
Views: 2307

ESP32 ECP Keypair JWT header formatting

Hello all, I am using an ESP32 to connect to a server and send a JWT. I am using the ES256 algorithm to create a JWT using mbedTLS. I just had a few questions as I am new to cryptography and mbedTLS on the ESP32, and wanted to ask if any users have experience using mbedTLS on ESP32. For the x and y ...
by ecktello
Fri Jun 02, 2023 9:10 pm
Forum: General Discussion
Topic: Monitor printing unreadable output
Replies: 7
Views: 5165

Re: Monitor printing unreadable output

Sorry for getting back to this so late, but it happens if you install any ESP command line tools after you install the ESP IDF VS Code extension. It may also occur if you use the direct command terminal rather than using than using the ESP-IDF terminal.
by ecktello
Mon May 08, 2023 11:28 am
Forum: General Discussion
Topic: Monitor printing unreadable output
Replies: 7
Views: 5165

Re: Monitor printing unreadable output

Seems your serial port gets opened at 460800 baud; by default the ESP32 outputs data at 115200. (Note that flashing can be faster than that.) Maybe a setting somewhere? Hello Sprite, I tried your suggestion and it still handled the same way, but thanks for the advice. What's interesting is instead ...
by ecktello
Sun May 07, 2023 8:46 pm
Forum: General Discussion
Topic: Monitor printing unreadable output
Replies: 7
Views: 5165

Monitor printing unreadable output

Hello all, My first time posting here so hope this is the right forum. I am running an ESP32 from COM4 on Windows 10 64 bit in VSCode using the ESP-IDF extension with Python 3.11 and ESP IDF Framework 5.0.1-2. I followed the tutorial here https://esp32tutorials.com/install-esp32-esp-idf-windows-inte...