We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
check_public_with_max_size
1 parent 087c3d3 commit 79641e1Copy full SHA for 79641e1
src/key.rs
@@ -622,7 +622,7 @@ pub fn check_public(public_key: &impl PublicKeyParts) -> Result<()> {
622
/// Check that the public key is well formed and has an exponent within acceptable bounds.
623
#[inline]
624
fn check_public_with_max_size(n: &BoxedUint, e: &BoxedUint, max_size: usize) -> Result<()> {
625
- if n.bits_precision() as usize > max_size {
+ if n.bits_vartime() as usize > max_size {
626
return Err(Error::ModulusTooLarge);
627
}
628
0 commit comments