适用于Node.js的AES-CMAC模块吗? [英] AES-CMAC module for Node.js?

查看:78
本文介绍了适用于Node.js的AES-CMAC模块吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在处理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.

推荐答案

由于找不到任何内容,我最终创建了自己的模块:

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-CMAC模块吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆