Add 'static/Send/Sync to specific traits in crypto

These were proven necessary by our real world usage.
This commit is contained in:
Luke Parker
2023-03-07 02:38:47 -05:00
parent 2729882d65
commit 0bbf511062
3 changed files with 10 additions and 8 deletions

View File

@@ -42,7 +42,9 @@ mod ed448;
pub use ed448::*;
/// Unified trait defining a ciphersuite around an elliptic curve.
pub trait Ciphersuite: Clone + Copy + PartialEq + Eq + Debug + Zeroize {
pub trait Ciphersuite:
'static + Send + Sync + Clone + Copy + PartialEq + Eq + Debug + Zeroize
{
/// Scalar field element type.
// This is available via G::Scalar yet `C::G::Scalar` is ambiguous, forcing horrific accesses
type F: PrimeField + PrimeFieldBits + Zeroize;