File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ void setup() {
25
25
Serial.println (hexEncode (sha, sizeof (sha)));
26
26
27
27
/* One-shot */
28
- arduino::sha256::oneshot (buffer, sizeof (buffer), sha);
28
+ arduino::sha256::sha256 (buffer, sizeof (buffer), sha);
29
29
Serial.println (hexEncode (sha, sizeof (sha)));
30
30
}
31
31
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ namespace arduino { namespace bpid {
39
39
return String (" " );
40
40
}
41
41
uint8_t out[SHA256::HASH_SIZE];
42
- arduino::sha256::oneshot (data, sizeof (data), out);
42
+ arduino::sha256::sha256 (data, sizeof (data), out);
43
43
return arduino::hex::encode (out, sizeof (out));
44
44
}
45
45
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ namespace arduino { namespace sha256 {
38
38
inline void finalize (sha256_ctx * ctx, uint8_t digest[SHA256_DIGEST_SIZE]) {
39
39
return sha256_final (ctx, digest);
40
40
}
41
- inline void oneshot (const unsigned char *input, unsigned int ilen, unsigned char *output) {
41
+ inline void sha256 (const unsigned char *input, unsigned int ilen, unsigned char *output) {
42
42
::sha256 (input, ilen, output);
43
43
}
44
44
You can’t perform that action at this time.
0 commit comments