pub fn recover_file_key_parts(
amk: &Amk,
file_id: &Uuid,
nonce_prefix: &[u8],
key_mode: KeyMode,
wrapped_file_key: Option<&WrappedFileKey>,
) -> Result<[u8; 32], CryptoError>Expand description
recover_file_key over the manifest fields it reads, for a reader that holds those
fields but not the manifest: the share viewer, which is served an asset’s key-free crypto
parameters and never its signed manifest (that would carry the device and account ids the
export strip removes). Same dispatch and the same fail-closed errors.