pub struct AsymmetricAlgorithm { /* private fields */ }
Expand description
Asymmetric algorithm provider.
Implementations§
Source§impl AsymmetricAlgorithm
impl AsymmetricAlgorithm
Sourcepub fn open(id: AsymmetricAlgorithmId) -> Result<Self>
pub fn open(id: AsymmetricAlgorithmId) -> Result<Self>
Open an asymmetric algorithm provider
§Examples
let algo = AsymmetricAlgorithm::open(AsymmetricAlgorithmId::Rsa);
assert!(algo.is_ok());
Sourcepub fn id(&self) -> Result<AsymmetricAlgorithmId>
pub fn id(&self) -> Result<AsymmetricAlgorithmId>
§Examples
let algo = AsymmetricAlgorithm::open(AsymmetricAlgorithmId::Rsa).unwrap();
assert_eq!(algo.id(), Ok(AsymmetricAlgorithmId::Rsa));
Auto Trait Implementations§
impl Freeze for AsymmetricAlgorithm
impl RefUnwindSafe for AsymmetricAlgorithm
impl Send for AsymmetricAlgorithm
impl !Sync for AsymmetricAlgorithm
impl Unpin for AsymmetricAlgorithm
impl UnwindSafe for AsymmetricAlgorithm
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