Closed Xuanwo closed 1 year ago
What is the actual error?
Also note pkcs1v15::SigningKey::new_with_prefix
was deprecated: https://docs.rs/rsa/latest/rsa/pkcs1v15/struct.SigningKey.html#method.new_with_prefix
My best guess at what changed is LowerHex
/UpperHex
are used by the Display
impl which you are calling via ToString
, and they're now showing the unpadded value, rather than the padded value.
They should probably round trip serialize through SignatureEncoding
.
fmt::{LowerHex, UpperHex}
impls at the moment.Bravo! I confirmed that https://github.com/RustCrypto/RSA/pull/330 fixed this issue. Thanks for the quick response!
Fixed in #330
Hi, I found a possible break after upgrade from v0.8 to v0.9.
Backgound
I'm maintaining a lib that can generate signed url for google cloud storage services.
The code looks like the following:
https://github.com/Xuanwo/reqsign/blob/a3a6e962d1933fc9abf079ee24cde7873fe32565/src/google/signer.rs#L138-L141
Problem
After upgrading from version
v0.8.1
tov0.9.1
, this code became fragile and the related tests failed at a rate of 10%. However, after rolling back to versionv0.8.1
, it worked stably again.Do you have any ideas? I'm willing to help get this issue fixed.