Thinkofname/steven

Use rust-openssl for openssl bindings

Closed this issue · 11 comments

Use rust-openssl for openssl bindings

Or openssl on crates.io

I'm pretty sure the crates are missing the features required for Minecraft's protocol (it does use somewhat old encryption). I've tried to use the crates in the past with little luck

Which algorithms do you mean?

There is a ffi lib called openssl-sys which supports (nearly) every openssl function.

Whats wrong with the current system?

Openssl on crates.io supports aes_128_cfb8.

hmm it does but seems to use different methods internally to what I use, wonder if that makes a difference

If you remove the abstractions the only difference as I can see is the init call.

I've got it working, the Cipher vs Encrypt/Decrypt methods didn't seem to make a different