-
Notifications
You must be signed in to change notification settings - Fork 64
Adds proper documentation for rsa_encrypt and rsa_decrypt. #598
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
base: main
Are you sure you want to change the base?
Adds proper documentation for rsa_encrypt and rsa_decrypt. #598
Conversation
wiktor-k
left a comment
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.
Looks great, thanks 👌
| /// "This command performs RSA encryption using the indicated padding scheme according to IETF RFC | ||
| /// 8017." |
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.
I think this is a quote from the spec...? I wonder if this would look better in the rendered output:
| /// "This command performs RSA encryption using the indicated padding scheme according to IETF RFC | |
| /// 8017." | |
| /// > This command performs RSA encryption using the indicated padding scheme according to IETF [RFC 8017](https://www.rfc-editor.org/rfc/rfc8017). |
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.
Yeah it is a quote from the spec therefore I added the quotation marks. But I think it might be better if I make it more clear and use the Spec references. I shall see what I can do.
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.
Yep. I just wondered if using markdown style for quotes (>) would make the rendered output look better than just regular quote signs.
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.
fixed
| /// # ) | ||
| /// # .expect("Should be possible to create primary key from using valid Public object.") | ||
| /// # .key_handle; | ||
| /// // Because the key was created RsaScheme::Null it is possible to |
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.
| /// // Because the key was created RsaScheme::Null it is possible to | |
| /// // Because the key was created with RsaScheme::Null it is possible to |
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.
fixed
| /// "This command performs RSA decryption using the indicated padding scheme according to IETF RFC | ||
| /// 8017 ((PKCS#1)." |
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.
| /// "This command performs RSA decryption using the indicated padding scheme according to IETF RFC | |
| /// 8017 ((PKCS#1)." | |
| /// > This command performs RSA encryption using the indicated padding scheme according to IETF [RFC 8017](https://www.rfc-editor.org/rfc/rfc8017). |
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.
fixed
Signed-off-by: Jesper Brynolf <[email protected]>
addf239 to
1c30489
Compare
No description provided.