Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chacha20和chacha20-ietf这两种加密方式有什么区别? #507

Closed
ghost opened this issue Jan 5, 2016 · 9 comments
Closed

chacha20和chacha20-ietf这两种加密方式有什么区别? #507

ghost opened this issue Jan 5, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2016

哪种比较快 / 比较安全?

@wongsyrone
Copy link

使用方面并无区别,安全性相当。区别主要位于算法内部,有兴趣参考https://tools.ietf.org/html/rfc7539#section-2.3

@madeye madeye closed this as completed Jan 5, 2016
@wongsyrone
Copy link

项目自带一个libsodium,如果开启了--enable-system-shared-lib则需要另装

@rampageX
Copy link

网上说的是 python 版

@susating
Copy link

原来如此。感谢

@mxlife
Copy link

mxlife commented Feb 13, 2017

@wongsyrone 谷歌搜chacha20-ietf搜到这个问题了,我想问下既然安全性差不多,为什么官网把chacha20-ietf列在Not Recommended里,而把chacha20列在Deprecated里?
https://shadowsocks.org/en/spec/cipher.html

@pexcn
Copy link

pexcn commented Feb 13, 2017

好像是非 ietf 版本的加密方法 iv 长度不够 12 位

@mxlife
Copy link

mxlife commented Feb 18, 2017

@pexcn 找到了讨论的地方
shadowsocks/shadowsocks-org#36

@cevin
Copy link

cevin commented Mar 11, 2018

@mxlife 只是不推荐非ietf

@buptsb
Copy link

buptsb commented Jun 29, 2019

The original ChaCha20 cipher with a 64-bit nonce and a 64-bit counter,
allowing a practically unlimited amount of data to be encrypted with the same
(key, nonce) pair.

The IETF variant increases the nonce size to 96 bits, but reduces the counter
size down to 32 bits, allowing only up to 256 GB of data to be safely
encrypted with a given (key, nonce) pair.

https://libsodium.gitbook.io/doc/advanced/stream_ciphers/chacha20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants