Skip to content

Commit 1cf6025

Browse files
committed
sha256c.js.in modified
1 parent be45d6b commit 1cf6025

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sha256c.js.in

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
// How to use?
2424
// <script src="sha256.js"></script>
2525
// then
26-
// const shas256 = SHA256.md5('string');
26+
// const shas256 = SHA256.sha256('string');
2727
// or
28-
// const shas256 = new SHA256();
29-
// const a = shas256.init().update_str('str1').update_str('str2').end().$hex;
30-
// const b = shas256.init().update8(new UInt8Array(something)) .end().$bin;
28+
// const sha256s = new SHA256();
29+
// const a = sha256s.init().update_str('str1').update_str('str2').end().$hex;
30+
// const b = sha256s.init().update8(new UInt8Array(something)) .end().$bin;
3131
// This can be repeated: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232

3333
const SHA256 = (_=>_())(() => {
@@ -85,7 +85,6 @@ const SHA256 = (_=>_())(() => {
8585
}
8686
}
8787

88-
// XXX bis hier korrekt
8988
///////////////////////
9089

9190
!ctx a 0
@@ -260,7 +259,6 @@ const SHA256 = (_=>_())(() => {
260259
}
261260

262261
//////////////////////
263-
// XXX ab hier vermutlich korrekt
264262

265263
update8(b) // Uint8Array
266264
{

0 commit comments

Comments
 (0)