是否存在处理AES-CMAC的Node.js模块( RFC 4493 )?
Is there a Node.js module that handles AES-CMAC (RFC 4493)?
我一直在搜索NPM,Google等,但没有找到.我公司内部有人构建了一个将 Crypto ++ 封装为Node.js的C ++插件,但不幸的是,它没有不能在Windows上构建(取决于 make ).只是在寻找可能的替代方案.
I've been searching around NPM, Google, and the like, but haven't found one. Somebody within my company built one that wraps Crypto++ as a C++ addon for Node.js, but unfortunately it doesn't build on Windows (depends on make). Just looking for possible alternatives.
这类似于其他问题,但是我希望有一个Node.js特定的实现,而不是普通的JavaScript实现.理想的情况是利用Node的加密库或C/C ++插件来提高性能.
This is similar to this other question, but I'm hoping for a Node.js specific implementation instead of a plain JavaScript one. Ideally something that makes use of Node's crypto library or a C/C++ addon for performance.
建造一个似乎并不难,但是如果那里已经有一个,我想避免这样做.
It seems like it wouldn't be too hard to build one, but I'd like to avoid doing so if there is already one out there.
推荐答案由于找不到任何内容,我最终创建了自己的模块: node-aes-cmac
Since I couldn't find anything, I ended up creating my own module: node-aes-cmac
随着我了解更多,我发现RFC 4493特定于128位密钥(AES128).但它引用了 NIST特殊出版物800-38B 给出了我还需要支持192位和256位密钥的其他信息.
As I learned more, I discovered that RFC 4493 is specific for 128 bit keys (AES128). But it references the NIST Special Publication 800-38B which gave the additional information I needed to support 192 and 256 bit keys as well.
更多推荐
适用于Node.js的AES
发布评论