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

Implement RSA encryption (with update for current rewrite structure) #56

Draft
wants to merge 4 commits into
base: rewrite/v3
Choose a base branch
from

Conversation

en1gma713
Copy link
Contributor

The same as my last PR but it works this time and is up-to-date on the file structure

Comment on lines 6 to 8
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)
Copy link
Contributor

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

Comment on lines 8 to 10
rsa = "0.9.6"
der = "0.7.9"
rand = "0.8.5"
Copy link
Contributor

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

@en1gma713
Copy link
Contributor Author

fixed it

@en1gma713
Copy link
Contributor Author

facing version conflicts between rand and rand_core now

@en1gma713 en1gma713 marked this pull request as draft September 20, 2024 01:50
@ReCore-sys
Copy link
Collaborator

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Awaiting Approval
Development

Successfully merging this pull request may close these issues.

3 participants