mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
5 lines
149 B
JavaScript
5 lines
149 B
JavaScript
const { randomBytes } = require('crypto')
|
|
|
|
const { IVLENGTHS } = require('../registry')
|
|
|
|
module.exports = alg => randomBytes(IVLENGTHS.get(alg) / 8)
|