Skip to content

Commit 0da54d8

Browse files
yoursunnydevyte
authored andcommitted
Hash: make actual SHA1 result and comment consistent (#5057)
fixes #3437
1 parent 18f643c commit 0da54d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libraries/Hash/examples/sha1/sha1.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
#include <Hash.h>
66

77
void setup() {
8-
Serial.begin(921600);
8+
Serial.begin(115200);
99
}
1010

1111
void loop() {
1212

1313
// usage as String
14-
// SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
14+
// SHA1:a9993e364706816aba3e25717850c26c9cd0d89d
1515

1616
Serial.print("SHA1:");
1717
Serial.println(sha1("abc"));
1818

1919
// usage as ptr
2020
// SHA1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
2121
uint8_t hash[20];
22-
sha1("abc", &hash[0]);
22+
sha1("test", &hash[0]);
2323

2424
Serial.print("SHA1:");
2525
for (uint16_t i = 0; i < 20; i++) {
@@ -29,4 +29,3 @@ void loop() {
2929

3030
delay(1000);
3131
}
32-

0 commit comments

Comments
 (0)