pub struct RsaBuilder { /* private fields */ }
Expand description
Builder for RSA KEM algorithms with hash function selection.
用于选择哈希函数的 RSA KEM 算法构建器。
§Hash Function Selection | 哈希函数选择
The hash function affects both security and performance:
- SHA-256: Standard choice, good performance
- SHA-384: Higher security, medium performance
- SHA-512: Maximum security, slower performance
哈希函数影响安全性和性能:
- SHA-256: 标准选择,良好性能
- SHA-384: 更高安全性,中等性能
- SHA-512: 最大安全性,较慢性能
Implementations§
Source§impl RsaBuilder
impl RsaBuilder
Sourcepub fn sha256(self) -> KemAlgorithm
pub fn sha256(self) -> KemAlgorithm
Sourcepub fn sha384(self) -> KemAlgorithm
pub fn sha384(self) -> KemAlgorithm
Uses SHA-384 hash function with RSA KEM.
在 RSA KEM 中使用 SHA-384 哈希函数。
§Properties | 属性
- Hash output: 384 bits
- Security level: 192-bit
- Performance: Medium
- Use case: Higher security requirements
使用场景:更高的安全要求
Sourcepub fn sha512(self) -> KemAlgorithm
pub fn sha512(self) -> KemAlgorithm
Uses SHA-512 hash function with RSA KEM.
在 RSA KEM 中使用 SHA-512 哈希函数。
§Properties | 属性
- Hash output: 512 bits
- Security level: 256-bit
- Performance: Lower
- Use case: Maximum security applications
使用场景:最大安全性应用
Auto Trait Implementations§
impl Freeze for RsaBuilder
impl RefUnwindSafe for RsaBuilder
impl Send for RsaBuilder
impl Sync for RsaBuilder
impl Unpin for RsaBuilder
impl UnwindSafe for RsaBuilder
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