Skip to content

Prepare library to support SE050 crypto device #308

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

Merged
merged 8 commits into from
Mar 8, 2022
Merged

Prepare library to support SE050 crypto device #308

merged 8 commits into from
Mar 8, 2022

Conversation

pennam
Copy link
Collaborator

@pennam pennam commented Mar 3, 2022

This PR should be rebased and applied after #307 so only commits from 44a5920 to 3d79839 are meaningful. I did not found a better way to stack PRs from a fork...

Its goal is to prepare the library and add support to the SE050 crypto device.

As of now this SE050 can be found on PORTENTA H7 boards, but it is not yet enabled in AIoTC_Config.h neither supported by the core.

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Mar 3, 2022
@github-actions
Copy link

github-actions bot commented Mar 3, 2022

Memory usage change @ 3d79839

Board flash % RAM for global variables %
arduino:mbed:envie_m4 ❔ -64 - +88 -0.01 - +0.01 💚 -8 - -8 -0.0 - -0.0
arduino:mbed:envie_m7 ❔ -72 - +16 -0.01 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 🔺 0 - +70 0.0 - 0.0 💚 -4 - 0 -0.0 - 0.0
arduino:samd:mkr1000 ❔ -48 - +64 -0.02 - +0.02 💚 -8 - -8 -0.02 - -0.02
arduino:samd:mkrgsm1400 ❔ -56 - +56 -0.02 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 ❔ -48 - +64 -0.02 - +0.02 💚 -8 - -8 -0.02 - -0.02
arduino:samd:mkrwan1300 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 💚 -24 - 0 -0.01 - 0.0 💚 -8 - 0 -0.02 - 0.0
arduino:samd:nano_33_iot 💚 -32 - 0 -0.01 - 0.0 💚 -8 - 0 -0.02 - 0.0
esp32:esp32:esp32 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp8266:esp8266:huzzah 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/ArduinoIoTCloud-Advanced
flash
% examples/ArduinoIoTCloud-Advanced
RAM for global variables
% examples/ArduinoIoTCloud-Basic
flash
% examples/ArduinoIoTCloud-Basic
RAM for global variables
% examples/utility/ArduinoIoTCloud_Travis_CI
flash
% examples/utility/ArduinoIoTCloud_Travis_CI
RAM for global variables
% examples/utility/Provisioning
flash
% examples/utility/Provisioning
RAM for global variables
% examples/utility/SelfProvisioning
flash
% examples/utility/SelfProvisioning
RAM for global variables
%
arduino:mbed:envie_m4 24 0.0 -8 -0.0 88 0.01 -8 -0.0 88 0.01 -8 -0.0 -64 -0.01 -8 -0.0
arduino:mbed:envie_m7 16 0.0 0 0.0 16 0.0 0 0.0 16 0.0 0 0.0 -72 -0.01 0 0.0
arduino:mbed_nano:nanorp2040connect 30 0.0 0 0.0 30 0.0 0 0.0 30 0.0 0 0.0 70 0.0 -4 -0.0 0 0.0 0 0.0
arduino:samd:mkr1000 64 0.02 -8 -0.02 56 0.02 -8 -0.02 64 0.02 -8 -0.02 -48 -0.02 -8 -0.02
arduino:samd:mkrgsm1400 48 0.02 0 0.0 48 0.02 0 0.0 56 0.02 0 0.0 -56 -0.02 0 0.0
arduino:samd:mkrnb1500 56 0.02 -8 -0.02 56 0.02 -8 -0.02 64 0.02 -8 -0.02 -48 -0.02 -8 -0.02
arduino:samd:mkrwan1300 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwifi1010 -8 -0.0 0 0.0 -8 -0.0 -8 -0.02 -8 -0.0 -8 -0.02 -24 -0.01 -8 -0.02 0 0.0 0 0.0
arduino:samd:nano_33_iot -8 -0.0 0 0.0 -8 -0.0 -8 -0.02 -8 -0.0 -8 -0.02 -32 -0.01 -8 -0.02 0 0.0 0 0.0
esp32:esp32:esp32 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp8266:esp8266:huzzah 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/ArduinoIoTCloud-Advanced<br>flash,%,examples/ArduinoIoTCloud-Advanced<br>RAM for global variables,%,examples/ArduinoIoTCloud-Basic<br>flash,%,examples/ArduinoIoTCloud-Basic<br>RAM for global variables,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>flash,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>RAM for global variables,%,examples/utility/Provisioning<br>flash,%,examples/utility/Provisioning<br>RAM for global variables,%,examples/utility/SelfProvisioning<br>flash,%,examples/utility/SelfProvisioning<br>RAM for global variables,%
arduino:mbed:envie_m4,24,0.0,-8,-0.0,88,0.01,-8,-0.0,88,0.01,-8,-0.0,-64,-0.01,-8,-0.0
arduino:mbed:envie_m7,16,0.0,0,0.0,16,0.0,0,0.0,16,0.0,0,0.0,-72,-0.01,0,0.0
arduino:mbed_nano:nanorp2040connect,30,0.0,0,0.0,30,0.0,0,0.0,30,0.0,0,0.0,70,0.0,-4,-0.0,0,0.0,0,0.0
arduino:samd:mkr1000,64,0.02,-8,-0.02,56,0.02,-8,-0.02,64,0.02,-8,-0.02,-48,-0.02,-8,-0.02,,,,
arduino:samd:mkrgsm1400,48,0.02,0,0.0,48,0.02,0,0.0,56,0.02,0,0.0,-56,-0.02,0,0.0,,,,
arduino:samd:mkrnb1500,56,0.02,-8,-0.02,56,0.02,-8,-0.02,64,0.02,-8,-0.02,-48,-0.02,-8,-0.02,,,,
arduino:samd:mkrwan1300,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
arduino:samd:mkrwifi1010,-8,-0.0,0,0.0,-8,-0.0,-8,-0.02,-8,-0.0,-8,-0.02,-24,-0.01,-8,-0.02,0,0.0,0,0.0
arduino:samd:nano_33_iot,-8,-0.0,0,0.0,-8,-0.0,-8,-0.02,-8,-0.0,-8,-0.02,-32,-0.01,-8,-0.02,0,0.0,0,0.0
esp32:esp32:esp32,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
esp8266:esp8266:huzzah,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,

@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2022

Codecov Report

Merging #308 (6aad616) into master (23e7f09) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #308   +/-   ##
=======================================
  Coverage   94.87%   94.87%           
=======================================
  Files          27       27           
  Lines        1113     1113           
=======================================
  Hits         1056     1056           
  Misses         57       57           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23e7f09...6aad616. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Mar 4, 2022

Memory usage change @ 11c0c82

Board flash % RAM for global variables %
arduino:mbed:envie_m4 ❔ -64 - +88 -0.01 - +0.01 💚 -8 - -8 -0.0 - -0.0
arduino:mbed:envie_m7 ❔ -72 - +16 -0.01 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 🔺 0 - +70 0.0 - 0.0 💚 -4 - 0 -0.0 - 0.0
arduino:samd:mkr1000 ❔ -48 - +64 -0.02 - +0.02 💚 -8 - -8 -0.02 - -0.02
arduino:samd:mkrgsm1400 ❔ -56 - +56 -0.02 - +0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 ❔ -48 - +64 -0.02 - +0.02 💚 -8 - -8 -0.02 - -0.02
arduino:samd:mkrwan1300 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 💚 -24 - 0 -0.01 - 0.0 💚 -8 - 0 -0.02 - 0.0
arduino:samd:nano_33_iot 💚 -32 - 0 -0.01 - 0.0 💚 -8 - 0 -0.02 - 0.0
esp32:esp32:esp32 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp8266:esp8266:huzzah 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/ArduinoIoTCloud-Advanced
flash
% examples/ArduinoIoTCloud-Advanced
RAM for global variables
% examples/ArduinoIoTCloud-Basic
flash
% examples/ArduinoIoTCloud-Basic
RAM for global variables
% examples/utility/ArduinoIoTCloud_Travis_CI
flash
% examples/utility/ArduinoIoTCloud_Travis_CI
RAM for global variables
% examples/utility/Provisioning
flash
% examples/utility/Provisioning
RAM for global variables
% examples/utility/SelfProvisioning
flash
% examples/utility/SelfProvisioning
RAM for global variables
%
arduino:mbed:envie_m4 24 0.0 -8 -0.0 88 0.01 -8 -0.0 88 0.01 -8 -0.0 -64 -0.01 -8 -0.0
arduino:mbed:envie_m7 16 0.0 0 0.0 16 0.0 0 0.0 16 0.0 0 0.0 -72 -0.01 0 0.0
arduino:mbed_nano:nanorp2040connect 30 0.0 0 0.0 30 0.0 0 0.0 30 0.0 0 0.0 70 0.0 -4 -0.0 0 0.0 0 0.0
arduino:samd:mkr1000 64 0.02 -8 -0.02 56 0.02 -8 -0.02 64 0.02 -8 -0.02 -48 -0.02 -8 -0.02
arduino:samd:mkrgsm1400 48 0.02 0 0.0 48 0.02 0 0.0 56 0.02 0 0.0 -56 -0.02 0 0.0
arduino:samd:mkrnb1500 56 0.02 -8 -0.02 56 0.02 -8 -0.02 64 0.02 -8 -0.02 -48 -0.02 -8 -0.02
arduino:samd:mkrwan1300 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwifi1010 -8 -0.0 0 0.0 -8 -0.0 -8 -0.02 -8 -0.0 -8 -0.02 -24 -0.01 -8 -0.02 0 0.0 0 0.0
arduino:samd:nano_33_iot -8 -0.0 0 0.0 -8 -0.0 -8 -0.02 -8 -0.0 -8 -0.02 -32 -0.01 -8 -0.02 0 0.0 0 0.0
esp32:esp32:esp32 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp8266:esp8266:huzzah 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/ArduinoIoTCloud-Advanced<br>flash,%,examples/ArduinoIoTCloud-Advanced<br>RAM for global variables,%,examples/ArduinoIoTCloud-Basic<br>flash,%,examples/ArduinoIoTCloud-Basic<br>RAM for global variables,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>flash,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>RAM for global variables,%,examples/utility/Provisioning<br>flash,%,examples/utility/Provisioning<br>RAM for global variables,%,examples/utility/SelfProvisioning<br>flash,%,examples/utility/SelfProvisioning<br>RAM for global variables,%
arduino:mbed:envie_m4,24,0.0,-8,-0.0,88,0.01,-8,-0.0,88,0.01,-8,-0.0,-64,-0.01,-8,-0.0
arduino:mbed:envie_m7,16,0.0,0,0.0,16,0.0,0,0.0,16,0.0,0,0.0,-72,-0.01,0,0.0
arduino:mbed_nano:nanorp2040connect,30,0.0,0,0.0,30,0.0,0,0.0,30,0.0,0,0.0,70,0.0,-4,-0.0,0,0.0,0,0.0
arduino:samd:mkr1000,64,0.02,-8,-0.02,56,0.02,-8,-0.02,64,0.02,-8,-0.02,-48,-0.02,-8,-0.02,,,,
arduino:samd:mkrgsm1400,48,0.02,0,0.0,48,0.02,0,0.0,56,0.02,0,0.0,-56,-0.02,0,0.0,,,,
arduino:samd:mkrnb1500,56,0.02,-8,-0.02,56,0.02,-8,-0.02,64,0.02,-8,-0.02,-48,-0.02,-8,-0.02,,,,
arduino:samd:mkrwan1300,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
arduino:samd:mkrwifi1010,-8,-0.0,0,0.0,-8,-0.0,-8,-0.02,-8,-0.0,-8,-0.02,-24,-0.01,-8,-0.02,0,0.0,0,0.0
arduino:samd:nano_33_iot,-8,-0.0,0,0.0,-8,-0.0,-8,-0.02,-8,-0.0,-8,-0.02,-32,-0.01,-8,-0.02,0,0.0,0,0.0
esp32:esp32:esp32,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
esp8266:esp8266:huzzah,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,

@pennam
Copy link
Collaborator Author

pennam commented Mar 7, 2022

rebased after #307 has been merged

@pennam pennam requested review from aentinger and facchinm March 7, 2022 16:21
@github-actions
Copy link

github-actions bot commented Mar 7, 2022

Memory usage change @ 6aad616

Board flash % RAM for global variables %
arduino:mbed:envie_m4 💚 -48 - -48 -0.0 - -0.0 0 - 0 0.0 - 0.0
arduino:mbed:envie_m7 💚 -56 - -48 -0.01 - -0.01 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkr1000 💚 -48 - -40 -0.02 - -0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrgsm1400 💚 -56 - -48 -0.02 - -0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 💚 -48 - -40 -0.02 - -0.02 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1300 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:nano_33_iot 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp32:esp32:esp32 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp8266:esp8266:huzzah 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/ArduinoIoTCloud-Advanced
flash
% examples/ArduinoIoTCloud-Advanced
RAM for global variables
% examples/ArduinoIoTCloud-Basic
flash
% examples/ArduinoIoTCloud-Basic
RAM for global variables
% examples/utility/ArduinoIoTCloud_Travis_CI
flash
% examples/utility/ArduinoIoTCloud_Travis_CI
RAM for global variables
% examples/utility/Provisioning
flash
% examples/utility/Provisioning
RAM for global variables
% examples/utility/SelfProvisioning
flash
% examples/utility/SelfProvisioning
RAM for global variables
%
arduino:mbed:envie_m4 -48 -0.0 0 0.0 -48 -0.0 0 0.0 -48 -0.0 0 0.0 -48 -0.0 0 0.0
arduino:mbed:envie_m7 -48 -0.01 0 0.0 -56 -0.01 0 0.0 -56 -0.01 0 0.0 -56 -0.01 0 0.0
arduino:mbed_nano:nanorp2040connect 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkr1000 -40 -0.02 0 0.0 -48 -0.02 0 0.0 -40 -0.02 0 0.0 -48 -0.02 0 0.0
arduino:samd:mkrgsm1400 -56 -0.02 0 0.0 -56 -0.02 0 0.0 -48 -0.02 0 0.0 -48 -0.02 0 0.0
arduino:samd:mkrnb1500 -48 -0.02 0 0.0 -48 -0.02 0 0.0 -40 -0.02 0 0.0 -48 -0.02 0 0.0
arduino:samd:mkrwan1300 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwifi1010 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:nano_33_iot 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp32:esp32:esp32 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp8266:esp8266:huzzah 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/ArduinoIoTCloud-Advanced<br>flash,%,examples/ArduinoIoTCloud-Advanced<br>RAM for global variables,%,examples/ArduinoIoTCloud-Basic<br>flash,%,examples/ArduinoIoTCloud-Basic<br>RAM for global variables,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>flash,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>RAM for global variables,%,examples/utility/Provisioning<br>flash,%,examples/utility/Provisioning<br>RAM for global variables,%,examples/utility/SelfProvisioning<br>flash,%,examples/utility/SelfProvisioning<br>RAM for global variables,%
arduino:mbed:envie_m4,-48,-0.0,0,0.0,-48,-0.0,0,0.0,-48,-0.0,0,0.0,-48,-0.0,0,0.0
arduino:mbed:envie_m7,-48,-0.01,0,0.0,-56,-0.01,0,0.0,-56,-0.01,0,0.0,-56,-0.01,0,0.0
arduino:mbed_nano:nanorp2040connect,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:samd:mkr1000,-40,-0.02,0,0.0,-48,-0.02,0,0.0,-40,-0.02,0,0.0,-48,-0.02,0,0.0,,,,
arduino:samd:mkrgsm1400,-56,-0.02,0,0.0,-56,-0.02,0,0.0,-48,-0.02,0,0.0,-48,-0.02,0,0.0,,,,
arduino:samd:mkrnb1500,-48,-0.02,0,0.0,-48,-0.02,0,0.0,-40,-0.02,0,0.0,-48,-0.02,0,0.0,,,,
arduino:samd:mkrwan1300,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
arduino:samd:mkrwifi1010,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:samd:nano_33_iot,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
esp32:esp32:esp32,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
esp8266:esp8266:huzzah,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,

@pennam pennam merged commit cc3b617 into arduino-libraries:master Mar 8, 2022
* CONSTANTS
******************************************************************************/
static const char AIoTSSCert[] =
"-----BEGIN CERTIFICATE-----\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this is a root certificate for the Arduino IoT Cloud servers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, it is. You can view it using:

openssl s_client -connect server:port -showcerts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants