{"_id":"hmac-blake2b","_rev":"239778","name":"hmac-blake2b","description":"HMAC backed by BLAKE2b","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"emilbayes","email":""}],"time":{"modified":"2023-03-24T16:57:41.000Z","created":"2018-04-25T08:47:43.501Z","2.0.2":"2023-01-12T22:09:54.738Z","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.2":{"name":"hmac-blake2b","version":"2.0.2","description":"HMAC backed by BLAKE2b","main":"index.js","dependencies":{"nanoassert":"^2.0.0","sodium-universal":"^4.0.0"},"devDependencies":{"browserify":"^17.0.0","standard":"^17.0.0","tape":"^5.6.1","tape-run":"^10.0.0"},"scripts":{"pretest":"standard","test":"tape test.js","posttest":"browserify test.js | tape-run"},"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":"f040bf3e679f59a5af0f63da10d803b7ae7b2a50","_id":"hmac-blake2b@2.0.2","_nodeVersion":"19.3.0","_npmVersion":"8.19.2","dist":{"shasum":"852bd2745766316cd23cafcf4ea64947ea4b97b9","size":3452,"noattachment":false,"key":"/hmac-blake2b/-/hmac-blake2b-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/hmac-blake2b/download/hmac-blake2b-2.0.2.tgz"},"_npmUser":{"name":"emilbayes","email":"github@tixz.dk"},"directories":{},"maintainers":[{"name":"emilbayes","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hmac-blake2b_2.0.2_1673561394598_0.17026778307179868"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-12T22:09:54.738Z","publish_time":1673561394738,"_cnpm_publish_time":1673561394738},"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://name.csiicloud.com:7001/hmac-blake2b/download/hmac-blake2b-2.0.0.tgz"},"maintainers":[{"name":"emilbayes","email":""}],"_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,"_cnpmcore_publish_time":"2021-12-16T23:52:32.378Z"},"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://name.csiicloud.com:7001/hmac-blake2b/download/hmac-blake2b-1.0.0.tgz"},"maintainers":[{"name":"emilbayes","email":""}],"_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,"_cnpmcore_publish_time":"2021-12-16T23:52:32.772Z"},"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://name.csiicloud.com:7001/hmac-blake2b/download/hmac-blake2b-0.2.0.tgz"},"maintainers":[{"name":"emilbayes","email":""}],"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,"_cnpmcore_publish_time":"2021-12-16T23:52:32.966Z"},"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://name.csiicloud.com:7001/hmac-blake2b/download/hmac-blake2b-0.1.1.tgz"},"maintainers":[{"name":"emilbayes","email":""}],"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,"_cnpmcore_publish_time":"2021-12-16T23:52:33.175Z"},"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://name.csiicloud.com:7001/hmac-blake2b/download/hmac-blake2b-0.1.0.tgz"},"maintainers":[{"name":"emilbayes","email":""}],"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,"_cnpmcore_publish_time":"2021-12-16T23:52:33.389Z"}},"readme":"# `hmac-blake2b`\n\n[![Build Status](https://github.com/emilbayes/hmac-blake2b/actions/workflows/npm.yml/badge.svg)](https://github.com/emilbayes/hmac-blake2b/actions/workflows/npm.yml)\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\nconst { randombytes_buf } = require('sodium-universal/randombytes')\nconst hmac = require('.')\n\nconst mac = Buffer.alloc(hmac.BYTES)\nconst key = Buffer.alloc(hmac.KEYBYTES)\nrandombytes_buf(key)\n\nconst data = Buffer.from('some data')\n\nhmac(mac, data, key)\n\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"}