-
Notifications
You must be signed in to change notification settings - Fork 25
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
Implement RSA encryption (with update for current rewrite structure) #56
base: rewrite/v3
Are you sure you want to change the base?
Conversation
src/lib/net/encryption/src/key.rs
Outdated
pub public_key: RsaPublicKey, //public key side of the keypair (for encryption) | ||
pub encoded_public_key: der::Document, //the public key encoded in ASN.1 DER format for publishing to the client | ||
pub private_key: RsaPrivateKey, //private key side of the keypair (for decryption) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When documenting field the actual syntax should be:
/// public key side of the keypair (for encryption)
pub public_key: RsaPublicKey
As it ties the documentation comment to the field that is then viewable with Rust-analyzer/LSP
src/lib/net/encryption/Cargo.toml
Outdated
rsa = "0.9.6" | ||
der = "0.7.9" | ||
rand = "0.8.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These dependencies should be placed in the workspace (project root) Cargo.toml
and then imported as
crate = { workspace = true }
See https://github.com/ferrumc-rs/ferrumc/blob/rewrite/v3/src/lib/README.MD
fixed it |
facing version conflicts between rand and rand_core now |
@en1gma713 we've added the networking stack now, if you'd be able to sort out the conflicts and make sure all of your stuff works ok with the new code, im happy to merge |
The same as my last PR but it works this time and is up-to-date on the file structure