mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 14:00:48 +02:00
Rust wrapper: tweak wc_RsaFlattenPublicKey error message in RSA SigningKey::verifying_key()
This commit is contained in:
@@ -337,7 +337,7 @@ impl<H: Hash, const N: usize> Keypair for SigningKey<H, N> {
|
||||
panic!("wc_RsaFlattenPublicKey failed: {rc}");
|
||||
}
|
||||
if (n_len as usize) != N || e_len == 0 || (e_len as usize) > MAX_E_LEN {
|
||||
panic!("wc_RsaFlattenPublicKey failed: e_len: {e_len}, n_len: {n_len}");
|
||||
panic!("wc_RsaFlattenPublicKey returned unexpected lengths: e_len: {e_len}, n_len: {n_len}");
|
||||
}
|
||||
VerifyingKey {
|
||||
n,
|
||||
|
||||
Reference in New Issue
Block a user