Skip to content

Fix examples #50

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 1 commit into from
Jul 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/AES128/AES128.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
*/

#include <ArduinoBearSSL.h>
#include "AES128.h"

#ifdef ARDUINO_ARCH_MEGAAVR
// Create the object
AES128Class AES128;
#endif

uint8_t key[16] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02};
uint8_t enc_iv[16] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01};
Expand Down
6 changes: 6 additions & 0 deletions examples/DES/DES.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
*/

#include <ArduinoBearSSL.h>
#include "DES.h"

#ifdef ARDUINO_ARCH_MEGAAVR
// Create the object
DESClass DES;
#endif

uint8_t key[8] = {0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02};
uint8_t enc_iv[8] = {0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01};
Expand Down
6 changes: 6 additions & 0 deletions examples/MD5/MD5.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
*/

#include <ArduinoBearSSL.h>
#include "MD5.h"

#ifdef ARDUINO_ARCH_MEGAAVR
// Create the object
MD5Class MD5;
#endif

void setup() {
Serial.begin(9600);
Expand Down
6 changes: 6 additions & 0 deletions examples/SHA256/SHA256.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
*/

#include <ArduinoBearSSL.h>
#include "SHA256.h"

#ifdef ARDUINO_ARCH_MEGAAVR
// Create the object
SHA256Class SHA256;
#endif

void setup() {
Serial.begin(9600);
Expand Down