pub struct HashAlgorithmBuilder;
Expand description
Builder for constructing hash algorithm instances.
用于构建哈希算法实例的构建器。
§Usage Pattern | 使用模式
The builder provides a fluent interface for algorithm selection:
构建器为算法选择提供流畅的接口:
use seal_crypto_wrapper::algorithms::hash::HashAlgorithm;
// General purpose
let sha256 = HashAlgorithm::build().sha256();
// High security
let sha384 = HashAlgorithm::build().sha384();
// Maximum security
let sha512 = HashAlgorithm::build().sha512();
Implementations§
Source§impl HashAlgorithmBuilder
impl HashAlgorithmBuilder
Sourcepub fn sha256(self) -> HashAlgorithm
pub fn sha256(self) -> HashAlgorithm
Sourcepub fn sha384(self) -> HashAlgorithm
pub fn sha384(self) -> HashAlgorithm
Sourcepub fn sha512(self) -> HashAlgorithm
pub fn sha512(self) -> HashAlgorithm
Auto Trait Implementations§
impl Freeze for HashAlgorithmBuilder
impl RefUnwindSafe for HashAlgorithmBuilder
impl Send for HashAlgorithmBuilder
impl Sync for HashAlgorithmBuilder
impl Unpin for HashAlgorithmBuilder
impl UnwindSafe for HashAlgorithmBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more