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

Experimental AES-SIV cipher #41

Closed
riobard opened this issue Feb 8, 2017 · 3 comments
Closed

Experimental AES-SIV cipher #41

riobard opened this issue Feb 8, 2017 · 3 comments

Comments

@riobard
Copy link
Contributor

riobard commented Feb 8, 2017

I've added an experimental AES-SIV cipher to my Go port here riobard/go-shadowsocks2@7bcc772

This should in theory mitigate the issue of nonce reuse in SIP004 since SIV is misuse-resistant. However the performance of SIV is pretty bad, as SIV is a non-online 2-pass cipher.

Benchmarking on my machine using AES-SIV-512 results in ~1Gbps throughput measured by iperf3, compared to >4Gbps throughput using AES-256-GCM. In most cases 1Gbps is more than good enough.

@madeye
Copy link
Contributor

madeye commented Feb 9, 2017

I'm considering AES-GCM-SIV: https://tools.ietf.org/html/draft-gueron-gcmsiv-00

According to https://eprint.iacr.org/2015/102.pdf

Table 2 shows that GCM-SIV is 14% slower than AES-GCM on Haswell, and 19% slower than AES-GCM on Broadwell

Also, we have an open source implementation here:

https://github.com/Shay-Gueron/AES-GCM-SIV

@riobard
Copy link
Contributor Author

riobard commented Feb 9, 2017

Looks very promising! I haven't found a native Go lib supporting AES-GCM-SIV, though.

@riobard
Copy link
Contributor Author

riobard commented Feb 10, 2017

SIV is no longer necessary once #42 is implemented. Closing now.

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

2 participants