rsa internals: Remove unneeded cpu_features field.

The inner types (as of recently) now have a `cpu_features` field so the
one in `PublicKey` is redundant.
This commit is contained in:
Brian Smith 2021-12-08 15:55:29 -08:00
parent 4635eef114
commit 318dccae71

View File

@ -27,7 +27,6 @@ pub struct PublicKey {
n: PublicModulus,
e: PublicExponent,
serialized: Box<[u8]>,
cpu_features: cpu::Features,
}
derive_debug_self_as_ref_hex_bytes!(PublicKey);
@ -76,12 +75,7 @@ impl PublicKey {
der_writer::write_positive_integer(output, &e_bytes);
});
Ok(Self {
n,
e,
serialized,
cpu_features,
})
Ok(Self { n, e, serialized })
}
/// The length, in bytes, of the public modulus.