Skip to content

Commit 5ee9bf2

Browse files
committed
[sha256] docs
1 parent 08fe7d5 commit 5ee9bf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hash/sha256.js

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ class Hasher {
117117
}
118118

119119
/**
120+
* Returns a 32-byte hash.
121+
*
120122
* @param {Uint8Array} data
121123
*/
122124
digest (data) {
@@ -167,6 +169,8 @@ class Hasher {
167169
}
168170

169171
/**
172+
* Returns a 32-byte hash.
173+
*
170174
* @param {Uint8Array} data
171175
*/
172176
export const digest = data => new Hasher().digest(data)

0 commit comments

Comments
 (0)