Skip to main content

GroupKeyStore

Trait GroupKeyStore 

Source
pub trait GroupKeyStore: Sealed {
    // Required methods
    fn install_ipk(
        &self,
        fabric: FabricIndex,
        ipk: SymmetricKey,
    ) -> Result<(), Status>;
    fn open<'b>(
        &self,
        buf: &'b mut [u8],
        from: PeerAddr,
        peers: &mut GroupPeers,
        compressed: &dyn Fn(FabricIndex) -> Option<CompressedFabricId>,
        scratch: &mut [u8],
    ) -> Result<Received<'b>>;
}
Available on crate feature rustcrypto only.
Expand description

The group key store, as the runtime reaches it: RefCell<GroupKeys<…>>.

Required Methods§

Source

fn install_ipk( &self, fabric: FabricIndex, ipk: SymmetricKey, ) -> Result<(), Status>

§11.18.6.8: providing an IPK “is equivalent to a KeySetWrite of group key set 0”.

Source

fn open<'b>( &self, buf: &'b mut [u8], from: PeerAddr, peers: &mut GroupPeers, compressed: &dyn Fn(FabricIndex) -> Option<CompressedFabricId>, scratch: &mut [u8], ) -> Result<Received<'b>>

§4.16.3’s receive path: find the key, check the counter, decrypt.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<C: Config, const K: usize, const M: usize> GroupKeyStore for RefCell<GroupKeys<C, K, M>>

Source§

fn install_ipk( &self, fabric: FabricIndex, ipk: SymmetricKey, ) -> Result<(), Status>

Source§

fn open<'b>( &self, buf: &'b mut [u8], from: PeerAddr, peers: &mut GroupPeers, compressed: &dyn Fn(FabricIndex) -> Option<CompressedFabricId>, scratch: &mut [u8], ) -> Result<Received<'b>>

Implementors§