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

Why do you use OpenSSL and not Rustls? #4

Open
umgefahren opened this issue Mar 17, 2021 · 1 comment
Open

Why do you use OpenSSL and not Rustls? #4

umgefahren opened this issue Mar 17, 2021 · 1 comment

Comments

@umgefahren
Copy link

Performance evaluations showed, that OpenSSL has a huge overhead in comparison to Rustls and is much slower. Also OpenSSL often makes issues while cross-compilation.
Was the use of OpenSSL a deliberate design choice and if yes why?

@voidc
Copy link
Member

voidc commented Sep 5, 2021

Hey, thanks for showing interest in the library! (and sorry for only noticing this issue now) 🙂 We don't actually use TLS but the underlying cryptographic primitives. Initially we tried to use ring, which is also used by Rustls. Unfortunately, ring only supports AEAD encryption which didn't work well with layered encryption since each layer requires passing a separate tag which would make the total message size dependent on the number of layers. This is why we switched to OpenSSL as it provides lower-level AES primitives.

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