AES128ESP32 Library
Loading...
Searching...
No Matches
cryptostructs.cpp
Go to the documentation of this file.
1// #include <Arduino.h>
2#include "AES128ESP32.h"
3
7
10 DEBUG3("");
11 data = (unsigned char*)malloc(s);
12 size = s;
13 }
14
17 DEBUG3("");
18 deletedata();
19 }
20
23 DEBUG3("");
24 if(size)
25 memset(data,0,size);
26 }
27
28
30 void databytes::deletedata(){
31 DEBUG3("");
32 if (size) {
33 cleardata();
34 free(data);
35 data=NULL;
36 size=0;
37 }
38 }
#define DEBUG3
Definition delays.h:39
databytes(size_t s)
size_t size
unsigned char * data
void cleardata()