NodeJS id-aes 128-wrap与aes 128-wrap的区别?

y3bcpkx1  于 2023-08-04  发布在  Node.js
关注(0)|答案(1)|浏览(126)

在Node.js中,console.dir(getCiphers(), {'maxArrayLength': null})同时输出id-aes128-wrapaes128-wrap。它们之间有什么区别?
运行getCipherInfo似乎表明后者只是前者的别名?

console.log(getCipherInfo('id-aes128-wrap'))
console.log(getCipherInfo('aes128-wrap'))

字符串
退货:

{
  mode: 'wrap',
  name: 'id-aes128-wrap',
  nid: 788,
  blockSize: 8,
  ivLength: 8,
  keyLength: 16
}
{
  mode: 'wrap',
  name: 'id-aes128-wrap',
  nid: 788,
  blockSize: 8,
  ivLength: 8,
  keyLength: 16
}

相关问题