Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ constructor
Method
constructor
modules/crypt/etc/hmac.js:41–45 ·
view source on GitHub ↗
(h, key, bitlen = 0)
Source
from the content-addressed store, hash-verified
39
40
export
default
class
HMAC {
41
constructor(h, key, bitlen = 0) {
42
this.h = h;
43
this.init(key);
44
this.hashLen = bitlen >> 3;
// in byte
45
};
46
init(key) {
47
const
h = this.h;
48
if
(key.byteLength > h.blockSize) {
Callers
nothing calls this directly
Calls
1
init
Method · 0.95
Tested by
no test coverage detected