Module sss_rs::wrapped_sharing
source · Expand description
Abstractions and wrappers around the core implementation of sharing/reconstructing.
For in-memory or small files, share and reconstruct are suitable. For large files or byte streams, Sharer and Reconstructor are better suited since they share/reconstruct in chunks.
For implementing custom wrappers or abstractions, basic_sharing functions can be utilized if finer-tuned control is needed.
Structs
- Used to reconstruct a secret in chunks, useful for large files.
- Used to share in chunks, useful for large files.
- Builder pattern for Sharer, use Sharer::builder to instantiate.
Enums
- Error for wrapped_sharing API, any error marked with (deprecated) will not be encountered if you avoid the deprecated functions.
Functions
- Reconstructs a secret to a vec
- Convenience method for the common use case of using BufReaders with Reconstructor to reconstrcut large secrets
- Convenience method for the common use case of using BufReaders with Reconstructor to reconstrcut large secrets
- reconstruct_from_filesDeprecatedPerforms the reconstruction of the shares from files with in the given dir with the give stem
- reconstruct_from_srcsDeprecatedReconstructs a secret from a given list of srcs. The srcs should all read the same number of bytes. Will rewind() secrets
- reconstruct_to_bufDeprecatedReconstructs from given list of shares and writes it to secret
- See from_secrets_compressed for more information.
- Convenience method for the common use case of using a BufReader with Sharer to share large secrets.
- Convenience method for the common use case of using a BufReader with Sharer to share large secrets. Takes a non-homogeneous list of outputs.
- share_from_bufDeprecatedCreates the shares and places them into a Vec of Vecs. This wraps around share_to_writables.
- share_to_filesDeprecatedShares all the shares to separate files for distribution.This is a wrapper for the share_to_writables function.
- share_to_writablesDeprecatedShares all the shares to individual writable destinations.