Deserialize the RSA modulus with standard base64

It was decided to use standard base64 instead of base64-url because
that's what the Go implementation did by default for a []byte.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2020-07-17 11:55:49 +02:00
parent 38fdf9b10d
commit ef0489d9d5

View file

@ -1185,8 +1185,8 @@ enum PublicKey {
hashing_algo: HashAlgo,
exponent: u32,
#[serde(
deserialize_with = "deserialize_as_base64_url_no_pad",
serialize_with = "serialize_as_base64_url_no_pad"
deserialize_with = "deserialize_as_base64",
serialize_with = "serialize_as_base64"
)]
modulus: Vec<u8>,
},