是否可以在nodejs中使用ChaCha20和Poly1305? [英] Is it possible to use ChaCha20 and Poly1305 in nodejs?

查看:225
本文介绍了是否可以在nodejs中使用ChaCha20和Poly1305?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为nodejs中的TLS启用 ChaCha20 Poly1305 ,但是如果我在Ubuntu 16.04.2 LTS上运行的nodejs v6.10.3上运行tls.getCiphers(),他们不在那里.

I would like to enable ChaCha20 and Poly1305 for TLS in nodejs, but if I run tls.getCiphers() on nodejs v6.10.3 running on Ubuntu 16.04.2 LTS , they are not there.

如果没有我自己构建自定义nodejs的话,这可能吗?我可以使用纯JavaScript来丢弃这些密码吗?

So is this possible without building a custom nodejs on my own? Can I maybe drop in these ciphers by using pure JavaScript?

任何信息将不胜感激.我之所以需要它,是因为我正在与不支持硬件加速AES的IoT设备通信,并且使用ChaCha20可能会大大提高性能.

Any information would be highly appreciated. I need this because I am communicating with an IoT-device that does not have support for HW-accelerated AES and using ChaCha20 would probably improve performance quite a bit.

推荐答案

在10/19/2017自己回答.

Answering this myself on 10/19/2017.

节点6、7、8甚至即将到来的9中都没有可用的支持.

There is no available support in Node 6, 7, 8 or even in the upcoming 9.

从TSC看到的最后一条消息(关于此事)是本次会议的协议: https://github.com/nodejs/TSC/pull/387/files

The last message seen from TSC (regarding this matter) is a protocol from this meeting: https://github.com/nodejs/TSC/pull/387/files

因此,如果Node.js 10中的ChaCha20和Poly1305可以解决OpenSSL 1.1的FIPS问题,那么它们似乎会受到支持.

So it looks like there might be support for ChaCha20 and Poly1305 in node.js 10, if they can sort out the FIPS issues for OpenSSL 1.1.

这篇关于是否可以在nodejs中使用ChaCha20和Poly1305?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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