Struct security_framework::os::macos::digest_transform::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for digest transform operations.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type_(&mut self, digest_type: DigestType) -> &mut Self
pub fn type_(&mut self, digest_type: DigestType) -> &mut Self
Sets the type of digest to perform.
If not set, an appropriate digest will be selected for you.
sourcepub fn length(&mut self, digest_length: CFIndex) -> &mut Self
pub fn length(&mut self, digest_length: CFIndex) -> &mut Self
Sets the output length of the digest.
If not set, an appropriate length will be selected for you. Some digest types only support specific output lengths.