Struct security_framework::os::macos::digest_transform::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A builder for digest transform operations.
Methods
impl Builder
[src]
fn new() -> Builder
Returns a new builder with default settings.
fn type_(&mut self, digest_type: DigestType) -> &mut Builder
Sets the type of digest to perform.
If not set, an appropriate digest will be selected for you.
fn length(&mut self, digest_length: CFIndex) -> &mut Builder
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.
fn hmac_key(&mut self, hmac_key: CFData) -> &mut Builder
Sets the key used for HMAC digests.
Only applies to HmacMd5
, HmacSha1
, and HmacSha2
digests.
fn execute(&self, data: &CFData) -> Result<CFData, CFError>
Computes the digest of the data.