Skip to content

Commit e3feaf2

Browse files
authored
Merge pull request #50 from arduino-libraries/test_size
Fix examples
2 parents 45b3a7c + 61cd3cd commit e3feaf2

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

examples/AES128/AES128.ino

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
*/
1414

1515
#include <ArduinoBearSSL.h>
16+
#include "AES128.h"
17+
18+
#ifdef ARDUINO_ARCH_MEGAAVR
19+
// Create the object
20+
AES128Class AES128;
21+
#endif
1622

1723
uint8_t key[16] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02};
1824
uint8_t enc_iv[16] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01};

examples/DES/DES.ino

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
*/
1414

1515
#include <ArduinoBearSSL.h>
16+
#include "DES.h"
17+
18+
#ifdef ARDUINO_ARCH_MEGAAVR
19+
// Create the object
20+
DESClass DES;
21+
#endif
1622

1723
uint8_t key[8] = {0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02};
1824
uint8_t enc_iv[8] = {0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01};

examples/MD5/MD5.ino

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
*/
99

1010
#include <ArduinoBearSSL.h>
11+
#include "MD5.h"
12+
13+
#ifdef ARDUINO_ARCH_MEGAAVR
14+
// Create the object
15+
MD5Class MD5;
16+
#endif
1117

1218
void setup() {
1319
Serial.begin(9600);

examples/SHA256/SHA256.ino

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
*/
99

1010
#include <ArduinoBearSSL.h>
11+
#include "SHA256.h"
12+
13+
#ifdef ARDUINO_ARCH_MEGAAVR
14+
// Create the object
15+
SHA256Class SHA256;
16+
#endif
1117

1218
void setup() {
1319
Serial.begin(9600);

0 commit comments

Comments
 (0)