How to include BearSSL #2470
Unanswered
LordOfDeadbush
asked this question in
Q&A
Replies: 1 comment
-
The BearSSL specific C++ classes are defined in #include <Arduino.h>
#include <ArduinoOTA.h>
BearSSL::PublicKey signPubKey(
"-----BEGIN PUBLIC KEY-----\n"
"MFswDQYJKoZIhvcNAQEBBQADSgAwRwJAXWRPQyGlEY+SXz8Uslhe+MLjTgWd8lf/\n"
"nA0hgCm9JFKC1tq1S73cQ9naClNXsMqY7pwPt1bSY8jYRqHHbdoUvwIDAQAB\n"
"-----END PUBLIC KEY-----\n"
);
BearSSL::HashSHA256 hash;
BearSSL::SigningVerifier sign( &signPubKey );
void setup() {
Update.installSignature( &hash, &sign );
}
void loop() {
} Obviously not functional until all the rest is filled in, but it compiles. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to follow the signing section of the OTA chapter in the documentation, and I can't seem to figure out how to include BearSSL. I was just wondering what the
#include
was? It doesn't seem to mention this on the docs.Thank you so much,
Corn
Beta Was this translation helpful? Give feedback.
All reactions