pub struct PFX {
pub version: u8,
pub auth_safe: ContentInfo,
pub mac_data: Option<MacData>,
}
Fields
version: u8
auth_safe: ContentInfo
mac_data: Option<MacData>
Implementations
sourceimpl PFX
impl PFX
pub fn new(
cert_der: &[u8],
key_der: &[u8],
ca_der: Option<&[u8]>,
password: &str,
name: &str
) -> Option<PFX>
pub fn new_with_cas(
cert_der: &[u8],
key_der: &[u8],
ca_der_list: &[&[u8]],
password: &str,
name: &str
) -> Option<PFX>
pub fn parse(bytes: &[u8]) -> Result<PFX, ASN1Error>
pub fn write(&self, w: DERWriter<'_>)
pub fn to_der(&self) -> Vec<u8>
pub fn bags(&self, password: &str) -> Result<Vec<SafeBag>, ASN1Error>
pub fn cert_bags(&self, password: &str) -> Result<Vec<Vec<u8>>, ASN1Error>
pub fn cert_x509_bags(&self, password: &str) -> Result<Vec<Vec<u8>>, ASN1Error>
pub fn cert_sdsi_bags(&self, password: &str) -> Result<Vec<String>, ASN1Error>
pub fn key_bags(&self, password: &str) -> Result<Vec<Vec<u8>>, ASN1Error>
pub fn verify_mac(&self, password: &str) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PFX
impl Send for PFX
impl Sync for PFX
impl Unpin for PFX
impl UnwindSafe for PFX
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more