pub struct Cms;Expand description
Wraps convenience helpers around Security.framework CMS APIs.
Implementations§
Source§impl Cms
impl Cms
Sourcepub fn encoder() -> Result<CmsEncoder>
pub fn encoder() -> Result<CmsEncoder>
Wraps the corresponding Security.framework CMS helper.
Sourcepub fn decoder() -> Result<CmsDecoder>
pub fn decoder() -> Result<CmsDecoder>
Wraps the corresponding Security.framework CMS helper.
Sourcepub fn encode_supporting_certificates(
certificates: &[Certificate],
) -> Result<Vec<u8>>
pub fn encode_supporting_certificates( certificates: &[Certificate], ) -> Result<Vec<u8>>
Wraps the corresponding Security.framework CMS helper.
Sourcepub fn decode_all_certificates(data: &[u8]) -> Result<Vec<Certificate>>
pub fn decode_all_certificates(data: &[u8]) -> Result<Vec<Certificate>>
Wraps the corresponding Security.framework CMS helper.
Sourcepub fn encode_content(
signers: &[Identity],
recipients: &[Certificate],
encapsulated_content_type_oid: Option<&str>,
detached_content: bool,
signed_attributes: CmsSignedAttributes,
content: &[u8],
) -> Result<Vec<u8>>
pub fn encode_content( signers: &[Identity], recipients: &[Certificate], encapsulated_content_type_oid: Option<&str>, detached_content: bool, signed_attributes: CmsSignedAttributes, content: &[u8], ) -> Result<Vec<u8>>
Wraps the corresponding Security.framework CMS helper.
Auto Trait Implementations§
impl Freeze for Cms
impl RefUnwindSafe for Cms
impl Send for Cms
impl Sync for Cms
impl Unpin for Cms
impl UnsafeUnpin for Cms
impl UnwindSafe for Cms
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