Skip to content

Get cloud jwt no ecc #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pennam
Copy link
Contributor

@pennam pennam commented Apr 15, 2025

No description provided.

Copy link

Memory usage change @ 916049c

Board flash % RAM for global variables %
arduino:mbed_giga:giga 🔺 0 - +64 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 🔺 0 - +67 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nicla:nicla_vision 🔺 0 - +64 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_opta:opta 🔺 0 - +128 0.0 - +0.01 0 - 0 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 🔺 0 - +84 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:renesas_uno:unor4wifi 🔺 0 - +80 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkr1000 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrgsm1400 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1300 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:nano_33_iot 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
Click for full report table
Board examples/CertificateSigningRequest
flash
% examples/CertificateSigningRequest
RAM for global variables
% examples/ConfigurationLocking
flash
% examples/ConfigurationLocking
RAM for global variables
% examples/RandomNumber
flash
% examples/RandomNumber
RAM for global variables
% examples/SelfSignedCertificate
flash
% examples/SelfSignedCertificate
RAM for global variables
%
arduino:mbed_giga:giga 64 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 64 0.0 0 0.0
arduino:mbed_nano:nanorp2040connect 67 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 67 0.0 0 0.0
arduino:mbed_nicla:nicla_vision 64 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 64 0.0 0 0.0
arduino:mbed_opta:opta 128 0.01 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 64 0.0 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 80 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 84 0.0 0 0.0
arduino:renesas_uno:unor4wifi 80 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 80 0.03 0 0.0
arduino:samd:mkr1000 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrgsm1400 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrnb1500 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrwan1300 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrwifi1010 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:nano_33_iot 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
Click for full report CSV
Board,examples/CertificateSigningRequest<br>flash,%,examples/CertificateSigningRequest<br>RAM for global variables,%,examples/ConfigurationLocking<br>flash,%,examples/ConfigurationLocking<br>RAM for global variables,%,examples/RandomNumber<br>flash,%,examples/RandomNumber<br>RAM for global variables,%,examples/SelfSignedCertificate<br>flash,%,examples/SelfSignedCertificate<br>RAM for global variables,%
arduino:mbed_giga:giga,64,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0
arduino:mbed_nano:nanorp2040connect,67,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,67,0.0,0,0.0
arduino:mbed_nicla:nicla_vision,64,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0
arduino:mbed_opta:opta,128,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:renesas_portenta:portenta_c33,80,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,84,0.0,0,0.0
arduino:renesas_uno:unor4wifi,80,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,80,0.03,0,0.0
arduino:samd:mkr1000,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrgsm1400,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrnb1500,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrwan1300,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrwifi1010,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:nano_33_iot,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0

@pennam pennam requested a review from andreagilardoni April 15, 2025 12:50
@pennam pennam force-pushed the get-cloud-jwt-no-ecc branch from 916049c to 4900feb Compare April 15, 2025 13:57
Copy link

Memory usage change @ 4900feb

Board flash % RAM for global variables %
arduino:mbed_giga:giga 🔺 0 - +64 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 🔺 0 - +67 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nicla:nicla_vision 🔺 0 - +64 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_opta:opta 🔺 0 - +128 0.0 - +0.01 0 - 0 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 🔺 0 - +84 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:renesas_uno:unor4wifi 🔺 0 - +80 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkr1000 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrgsm1400 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1300 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
arduino:samd:nano_33_iot 🔺 0 - +68 0.0 - +0.03 0 - 0 0.0 - 0.0
Click for full report table
Board examples/CertificateSigningRequest
flash
% examples/CertificateSigningRequest
RAM for global variables
% examples/ConfigurationLocking
flash
% examples/ConfigurationLocking
RAM for global variables
% examples/RandomNumber
flash
% examples/RandomNumber
RAM for global variables
% examples/SelfSignedCertificate
flash
% examples/SelfSignedCertificate
RAM for global variables
%
arduino:mbed_giga:giga 64 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 64 0.0 0 0.0
arduino:mbed_nano:nanorp2040connect 67 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 67 0.0 0 0.0
arduino:mbed_nicla:nicla_vision 64 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 64 0.0 0 0.0
arduino:mbed_opta:opta 128 0.01 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 64 0.0 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 80 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 84 0.0 0 0.0
arduino:renesas_uno:unor4wifi 80 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 80 0.03 0 0.0
arduino:samd:mkr1000 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrgsm1400 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrnb1500 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrwan1300 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:mkrwifi1010 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
arduino:samd:nano_33_iot 68 0.03 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 68 0.03 0 0.0
Click for full report CSV
Board,examples/CertificateSigningRequest<br>flash,%,examples/CertificateSigningRequest<br>RAM for global variables,%,examples/ConfigurationLocking<br>flash,%,examples/ConfigurationLocking<br>RAM for global variables,%,examples/RandomNumber<br>flash,%,examples/RandomNumber<br>RAM for global variables,%,examples/SelfSignedCertificate<br>flash,%,examples/SelfSignedCertificate<br>RAM for global variables,%
arduino:mbed_giga:giga,64,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0
arduino:mbed_nano:nanorp2040connect,67,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,67,0.0,0,0.0
arduino:mbed_nicla:nicla_vision,64,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0
arduino:mbed_opta:opta,128,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A
arduino:renesas_portenta:portenta_c33,80,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,84,0.0,0,0.0
arduino:renesas_uno:unor4wifi,80,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,80,0.03,0,0.0
arduino:samd:mkr1000,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrgsm1400,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrnb1500,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrwan1300,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:mkrwifi1010,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0
arduino:samd:nano_33_iot,68,0.03,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,68,0.03,0,0.0

namespace arduino { namespace b64 {

String urlEncode(const byte in[], unsigned int length);
String encode(const byte in[], unsigned int length, const char* prefix, const char* suffix);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't we define only encode this way? It seems a bit redundant the definition

Suggested change
String encode(const byte in[], unsigned int length, const char* prefix, const char* suffix);
String encode(const byte in[], unsigned int length, const char* prefix=nullptr, const char* suffix=nullptr);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants