pub fn unwrap_group_key(
wrap_key: &[u8; 32],
wrapped_blob: &[u8],
tenant: &str,
sub_hash: &[u8; 32],
prefix: &str,
) -> Result<Zeroizing<[u8; 32]>, String>Expand description
Unwrap a group key blob.
Expects wrapped_blob in the format produced by wrap_group_key():
nonce (12 bytes) || ciphertext.
ยงArguments
wrap_key- 32-byte key derived fromderive_wrap_key()wrapped_blob- Opaque blob fromwrap_group_key()tenant- verified tenant/domain (must match wrapping AAD)sub_hash- 32-byte subscriber identity hash (must match wrapping AAD)prefix- Topic prefix string (must match wrapping AAD)