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

compare with stunnel #198

Open
anarcat opened this issue Jun 18, 2019 · 4 comments
Open

compare with stunnel #198

anarcat opened this issue Jun 18, 2019 · 4 comments

Comments

@anarcat
Copy link

anarcat commented Jun 18, 2019

Hello!

Interesting project, I'm surprised that I didn't hear about it before! :) It would be great, for old graybeards like me, to see a comparison between spiped and stunnel. They both seem to serve similar purposes but I understand they differ in implementation (and maybe performance? or reliability?).

For someone used to deploying stunnel stuff everywhere, why would we switch to spiped?

@gperciva
Copy link
Member

To quote another security researcher,

Not being stunnel is the entire point of spiped. The author doesn't trust TLS.

Given the history of OpenSSL security flaws, I'd say that not relying on it (which stunnel does) was a good decision!

@anarcat
Copy link
Author

anarcat commented Jun 18, 2019

But from what I understand you do use OpenSSL for crypto, is that right? Are the concerns solely on TLS or X509 or what? :)

@cperciva
Copy link
Member

We use some of the basic crypto primitives; none of the higher level routines. Most of the worst bugs in OpenSSL have been protocol or parsing issues.

That said, we should probably get some benchmarks done at some point.

@gperciva
Copy link
Member

Only the AES code; no SSL. It's easy to see what's at risk:

$ git grep "#include <openssl"
BUILDING:  2. Has OpenSSL available via -lcrypto and #include <openssl/foo>, and
libcperciva/crypto/crypto_aes.c:#include <openssl/aes.h>
libcperciva/crypto/crypto_dh.c:#include <openssl/bn.h>
libcperciva/crypto/crypto_dh.c:#include <openssl/err.h>
$ 

Those files are relatively short:

$ wc -l libcperciva/crypto/crypto_dh.c 
297 libcperciva/crypto/crypto_dh.c
$ wc -l libcperciva/crypto/crypto_aes.c 
173 libcperciva/crypto/crypto_aes.c
$ 

so it's easy to check them. And they don't involve a lot of OpenSSL code.

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

No branches or pull requests

3 participants