{"_id":"hmac-blake2b","_rev":"481663","name":"hmac-blake2b","description":"HMAC backed by BLAKE2b","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"time":{"modified":"2021-08-05T09:40:09.000Z","created":"2018-04-25T08:47:43.501Z","2.0.0":"2020-06-25T12:26:24.797Z","1.0.0":"2020-05-01T11:52:10.108Z","0.2.0":"2018-04-26T20:21:18.650Z","0.1.1":"2018-04-25T10:50:31.531Z","0.1.0":"2018-04-25T08:47:43.501Z"},"users":{},"author":{"name":"Emil Bay","email":"github@tixz.dk"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/hmac-blake2b.git"},"versions":{"2.0.0":{"name":"hmac-blake2b","version":"2.0.0","description":"HMAC backed by BLAKE2b","main":"index.js","dependencies":{"nanoassert":"^1.1.0","sodium-native":"^3.1.1","sodium-universal":"^3.0.0"},"devDependencies":{"tape":"^4.8.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/hmac-blake2b.git"},"keywords":["hmac","blake2b"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/hmac-blake2b/issues"},"homepage":"https://github.com/emilbayes/hmac-blake2b#readme","gitHead":"818ed70925798ebf826770fa0f3082937933f2dc","_id":"hmac-blake2b@2.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"shasum":"09494e5d245d7afe45d157093080b159f7bacf15","size":3825,"noattachment":false,"key":"/hmac-blake2b/-/hmac-blake2b-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hmac-blake2b/download/hmac-blake2b-2.0.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hmac-blake2b_2.0.0_1593087984632_0.6431240476465157"},"_hasShrinkwrap":false,"publish_time":1593087984797,"_cnpm_publish_time":1593087984797},"1.0.0":{"name":"hmac-blake2b","version":"1.0.0","description":"HMAC backed by BLAKE2b","main":"index.js","dependencies":{"nanoassert":"^1.1.0","sodium-native":"^3.1.1"},"devDependencies":{"tape":"^4.8.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/hmac-blake2b.git"},"keywords":["hmac","blake2b"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/hmac-blake2b/issues"},"homepage":"https://github.com/emilbayes/hmac-blake2b#readme","gitHead":"f435445fac0b873560d71a3df25e2faa4e87c130","_id":"hmac-blake2b@1.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"5cb18da6506d012658676a08a04b62fbad6e2601","size":3776,"noattachment":false,"key":"/hmac-blake2b/-/hmac-blake2b-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hmac-blake2b/download/hmac-blake2b-1.0.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hmac-blake2b_1.0.0_1588333929997_0.06392327317968438"},"_hasShrinkwrap":false,"publish_time":1588333930108,"_cnpm_publish_time":1588333930108},"0.2.0":{"name":"hmac-blake2b","version":"0.2.0","description":"HMAC backed by BLAKE2b","main":"index.js","dependencies":{"nanoassert":"^1.1.0","sodium-universal":"^2.0.0"},"devDependencies":{"tape":"^4.8.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/hmac-blake2b.git"},"keywords":["hmac","blake2b"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/hmac-blake2b/issues"},"homepage":"https://github.com/emilbayes/hmac-blake2b#readme","gitHead":"c3c053cffdb126f8c549c00d5a110f9e80052281","_id":"hmac-blake2b@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"shasum":"f8c71699dc834ce8066a512ba0592eda572bff4c","size":3726,"noattachment":false,"key":"/hmac-blake2b/-/hmac-blake2b-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hmac-blake2b/download/hmac-blake2b-0.2.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hmac-blake2b_0.2.0_1524774078572_0.2935011188093788"},"_hasShrinkwrap":false,"publish_time":1524774078650,"_cnpm_publish_time":1524774078650},"0.1.1":{"name":"hmac-blake2b","version":"0.1.1","description":"HMAC backed by BLAKE2b","main":"index.js","dependencies":{"nanoassert":"^1.1.0","sodium-universal":"^2.0.0"},"devDependencies":{"tape":"^4.8.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/hmac-blake2b.git"},"keywords":["hmac","blake2b"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/hmac-blake2b/issues"},"homepage":"https://github.com/emilbayes/hmac-blake2b#readme","gitHead":"a009fd4268bf5b60dba0584fd8495216656d513a","_id":"hmac-blake2b@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"shasum":"ba78d58460b0bcd7812d068780b889884b7bfe75","size":2256,"noattachment":false,"key":"/hmac-blake2b/-/hmac-blake2b-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hmac-blake2b/download/hmac-blake2b-0.1.1.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hmac-blake2b_0.1.1_1524653431427_0.3012590517978331"},"_hasShrinkwrap":false,"publish_time":1524653431531,"_cnpm_publish_time":1524653431531},"0.1.0":{"name":"hmac-blake2b","version":"0.1.0","description":"HMAC backed by BLAKE2b","main":"index.js","dependencies":{"nanoassert":"^1.1.0","sodium-universal":"^2.0.0"},"devDependencies":{"tape":"^4.8.0"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/emilbayes/hmac-blake2b.git"},"keywords":["hmac","blake2b"],"author":{"name":"Emil Bay","email":"github@tixz.dk"},"license":"ISC","bugs":{"url":"https://github.com/emilbayes/hmac-blake2b/issues"},"homepage":"https://github.com/emilbayes/hmac-blake2b#readme","gitHead":"e6ab10b6efbec93100268f2f3633e5e2fa475189","_id":"hmac-blake2b@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"dist":{"shasum":"6916c498b3d77c349238541c1fede45366a047b3","size":2250,"noattachment":false,"key":"/hmac-blake2b/-/hmac-blake2b-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hmac-blake2b/download/hmac-blake2b-0.1.0.tgz"},"maintainers":[{"name":"emilbayes","email":"github@tixz.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hmac-blake2b_0.1.0_1524646063438_0.9811677288661074"},"_hasShrinkwrap":false,"publish_time":1524646063501,"_cnpm_publish_time":1524646063501}},"readme":"# `hmac-blake2b`\n\n> HMAC based on BLAKE2b\n\nEven though BLAKE2b is designed to also work as a MAC, specifications like\n[Noise](http://noiseprotocol.org/noise.html#hash-functions-and-hashing) call for\na HMAC.\n\n## Usage\n\n```js\nvar sodium = require('sodium-universal')\nvar hmac = require('hmac-blake2b')\n\nvar mac = Buffer.alloc(hmac.BYTES)\nvar key = Buffer.alloc(hmac.KEYBYTES)\nsodium.randombytes_buf(key)\n\nvar data = Buffer.from('some data')\n\nhmac(mac, data, key)\n```\n\n## API\n\n### `hmac.BYTES`\n\nSize of the output MAC in bytes\n\n### `hmac.KEYBYTES`\n\n[RFC2104](https://www.ietf.org/rfc/rfc2104.txt) recommended size of the key in\nbytes.\n\n### `hmac(out, data, key)`\n\nComputes a HMAC from `data` with `key` and writes it into `out`.\n\n* `out` must be a `Buffer` or `Uint8Array` of length `hmac.BYTES`\n* `data` must be a `Buffer`, `Uint8Array` or `Array` of `Buffer`s or\n  `Uint8Array`s.\n* `key` must be a `Buffer` or `Uint8Array`. Per the HMAC spec `key` can be as\n  small as 1 byte, in which case it is right-padded with `NUL` bytes, or any\n  size larger than `hmac.KEYBYTES` in which case it is hashed down to fit. The\n  recommended size by the spec is `hmac.KEYBYTES`\n\n## Install\n\n```sh\nnpm install hmac-blake2b\n```\n\n## License\n\n[ISC](LICENSE)\n","_attachments":{},"homepage":"https://github.com/emilbayes/hmac-blake2b#readme","bugs":{"url":"https://github.com/emilbayes/hmac-blake2b/issues"},"license":"ISC"}