pub struct SecureAggregation { /* private fields */ }Expand description
Secure aggregation
Implementations§
Source§impl SecureAggregation
impl SecureAggregation
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), StatisticalError>
Sourcepub fn aggregation_protocols(&self) -> &[AggregationProtocol]
pub fn aggregation_protocols(&self) -> &[AggregationProtocol]
Returns the list of registered aggregation protocols.
Sourcepub fn add_aggregation_protocol(&mut self, protocol: AggregationProtocol)
pub fn add_aggregation_protocol(&mut self, protocol: AggregationProtocol)
Register an additional aggregation protocol if not already present.
Sourcepub fn encryption_schemes(&self) -> &[EncryptionScheme]
pub fn encryption_schemes(&self) -> &[EncryptionScheme]
Returns the list of registered encryption schemes.
Sourcepub fn add_encryption_scheme(&mut self, scheme: EncryptionScheme)
pub fn add_encryption_scheme(&mut self, scheme: EncryptionScheme)
Register an additional encryption scheme if not already present.
Sourcepub fn add_integrity_check(&mut self, check: IntegrityCheck)
pub fn add_integrity_check(&mut self, check: IntegrityCheck)
Register an integrity check.
Sourcepub fn integrity_checks(&self) -> &[IntegrityCheck]
pub fn integrity_checks(&self) -> &[IntegrityCheck]
Returns the list of registered integrity checks.
Sourcepub fn get_integrity_check(&self, check_id: &str) -> Option<&IntegrityCheck>
pub fn get_integrity_check(&self, check_id: &str) -> Option<&IntegrityCheck>
Look up an integrity check by id.
Sourcepub fn integrity_check_count(&self) -> usize
pub fn integrity_check_count(&self) -> usize
Returns the number of registered integrity checks.
Auto Trait Implementations§
impl Freeze for SecureAggregation
impl RefUnwindSafe for SecureAggregation
impl Send for SecureAggregation
impl Sync for SecureAggregation
impl Unpin for SecureAggregation
impl UnsafeUnpin for SecureAggregation
impl UnwindSafe for SecureAggregation
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more