Skip to content

Add pure Rust crypto crates for hashing/HMAC and encryption#22

Merged
divi255 merged 8 commits into
roboplc:mainfrom
tinglou:main
Mar 1, 2026
Merged

Add pure Rust crypto crates for hashing/HMAC and encryption#22
divi255 merged 8 commits into
roboplc:mainfrom
tinglou:main

Conversation

@tinglou

@tinglou tinglou commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Cryptographic algorithms are provided by the selected backend:

  • v3_openssl: openssl
  • v3_rust: pure Rust crates Rust Crypto: (md-5, sha1, sha2, hmac, aes, des, etc.)

@divi255

divi255 commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

good day

thank you, it actually duplicates #20 but I will review and maybe make a combined one. the switch to rustls is planned in the nearest future

@tinglou

tinglou commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

good day

thank you, it actually duplicates #20 but I will review and maybe make a combined one. the switch to rustls is planned in the nearest future

Good morning!
Rustls is a bit heavy, the seperated crates are much more lightweight and are the most popular in their respective fields.

@tinglou

tinglou commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

maybe 3 backends are better:
v3_openssl: for FIPS-140
v3_rust: for pure rust
v3_aws_lc: FIPS-140

@macwilam

Copy link
Copy Markdown

My branch was (as I mentioned" more of a proof of concept. High chance that things can be done better / differently.
I am looking forward for this crate to be able to work without openssl.
Kind regards
Maciej

@zigazajc007

Copy link
Copy Markdown

Hello,

Any progress update?

Cross compiling openssl is a pain especially when you want to support musl, aarch... and compiling using Github Workflows.

All the libraries that I currently use support rustls:

  • lettre
  • reqwest
  • tokio
  • hyper
  • redis
  • tungstenite
  • mysql_async
  • tokio-postgres
  • imap
  • tiberius

smtp2 is the only one currently missing support.

@divi255

divi255 commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Thanks for bumping it. I hope to reach my open source part of life after CyberScotland'2026 (in about 10 days)

@divi255
divi255 merged commit 7bbf167 into roboplc:main Mar 1, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

4 participants