From dc99f6681b57a84ec5f650301f7f0fd6e8346cf2 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 24 Nov 2023 10:34:21 -0800 Subject: [PATCH] RSA: Stop deriving `Clone` and `Copy` for `P`, `Q`, and `N`. This was an artifact of some old logic that's no longer needed. --- src/rsa.rs | 1 - src/rsa/keypair.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/rsa.rs b/src/rsa.rs index e4cf7683a..9b5f9aebe 100644 --- a/src/rsa.rs +++ b/src/rsa.rs @@ -55,7 +55,6 @@ fn parse_public_key( // Type-level representation of an RSA public modulus *n*. See // `super::bigint`'s modulue-level documentation. -#[derive(Copy, Clone)] enum N {} impl bigint::PublicModulus for N {} diff --git a/src/rsa/keypair.rs b/src/rsa/keypair.rs index 05fb0c911..f485182fc 100644 --- a/src/rsa/keypair.rs +++ b/src/rsa/keypair.rs @@ -492,10 +492,8 @@ fn elem_exp_consttime( // Type-level representations of the different moduli used in RSA signing, in // addition to `super::N`. See `super::bigint`'s modulue-level documentation. -#[derive(Copy, Clone)] enum P {} -#[derive(Copy, Clone)] enum Q {} enum D {}