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§
Sourcefn install_ipk(
&self,
fabric: FabricIndex,
ipk: SymmetricKey,
) -> Result<(), Status>
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”.
Sourcefn open<'b>(
&self,
buf: &'b mut [u8],
from: PeerAddr,
peers: &mut GroupPeers,
compressed: &dyn Fn(FabricIndex) -> Option<CompressedFabricId>,
scratch: &mut [u8],
) -> Result<Received<'b>>
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".