RSA: Stop deriving Clone and Copy for P, Q, and N.

This was an artifact of some old logic that's no longer needed.
This commit is contained in:
Brian Smith 2023-11-24 10:34:21 -08:00
parent 76ce919997
commit dc99f6681b
2 changed files with 0 additions and 3 deletions

View File

@ -55,7 +55,6 @@ fn parse_public_key(
// Type-level representation of an RSA public modulus *n*. See // Type-level representation of an RSA public modulus *n*. See
// `super::bigint`'s modulue-level documentation. // `super::bigint`'s modulue-level documentation.
#[derive(Copy, Clone)]
enum N {} enum N {}
impl bigint::PublicModulus for N {} impl bigint::PublicModulus for N {}

View File

@ -492,10 +492,8 @@ fn elem_exp_consttime<M>(
// Type-level representations of the different moduli used in RSA signing, in // Type-level representations of the different moduli used in RSA signing, in
// addition to `super::N`. See `super::bigint`'s modulue-level documentation. // addition to `super::N`. See `super::bigint`'s modulue-level documentation.
#[derive(Copy, Clone)]
enum P {} enum P {}
#[derive(Copy, Clone)]
enum Q {} enum Q {}
enum D {} enum D {}