Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Sep 26, 2024
1 parent 430d5a6 commit c352050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws-lc-rs/src/rsa/encryption/oaep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ impl OaepPublicEncryptingKey {

/// Returns the max plaintext that could be decrypted using this key and with the provided algorithm.
#[must_use]
#[allow(clippy::missing_panics_doc)]
pub fn max_plaintext_size(&self, algorithm: &'static OaepAlgorithm) -> usize {
#[allow(unreachable_patterns)]
let hash_len: usize = match algorithm.id() {
Expand Down
1 change: 1 addition & 0 deletions aws-lc-rs/src/rsa/encryption/pkcs1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl Pkcs1PublicEncryptingKey {

/// Returns the max plaintext that could be encrypted using this key.
#[must_use]
#[allow(clippy::missing_panics_doc)]
pub fn max_plaintext_size(&self) -> usize {
const RSA_PKCS1_PADDING_SIZE: usize = 11; // crypto/fipsmodule/rsa/internal.h
self.key_size_bytes()
Expand Down

0 comments on commit c352050

Please sign in to comment.