File tree 2 files changed +6
-9
lines changed
examples/utility/SelfProvisioning
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 88
88
- name: RTCZero
89
89
- name: WiFiNINA
90
90
- name: Arduino_JSON
91
- - name: ArduinoBearSSL
92
91
- source-url: https://github.com/adafruit/Adafruit_SleepyDog.git
93
92
sketch-paths : |
94
93
- examples/utility/Provisioning
Original file line number Diff line number Diff line change 19
19
* INCLUDE
20
20
******************************************************************************/
21
21
22
- #include < ArduinoBearSSL.h>
23
-
24
- #include " bearssl/bearssl_hash.h"
22
+ #include < ArduinoIoTCloud.h>
25
23
#include < ArduinoECCX08.h>
26
-
27
24
#include " ECCX08Cert.h"
25
+ #include " tls/utility/SHA256.h"
28
26
29
27
/* *****************************************************************************
30
28
* DEFINE
@@ -190,13 +188,13 @@ String ECCX08CertClass::endCSR() {
190
188
*out++ = 0xa0 ;
191
189
*out++ = 0x00 ;
192
190
193
- br_sha256_context sha256Context ;
191
+ SHA256 sha256 ;
194
192
byte csrInfoSha256[64 ];
195
193
byte signature[64 ];
196
194
197
- br_sha256_init (&sha256Context );
198
- br_sha256_update (&sha256Context, csrInfo, csrInfoHeaderLen + csrInfoLen);
199
- br_sha256_out (&sha256Context, csrInfoSha256);
195
+ sha256. begin ( );
196
+ sha256. update ( csrInfo, csrInfoHeaderLen + csrInfoLen);
197
+ sha256. finalize ( csrInfoSha256);
200
198
201
199
if (!ECCX08.ecSign (_keySlot, csrInfoSha256, signature)) {
202
200
return " " ;
You can’t perform that action at this time.
0 commit comments