1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! AuthenticatedSafe-related types

use alloc::vec::Vec;
use cms::content_info::ContentInfo;

/// The `AuthenticatedSafe` type is defined in [RFC 7292 Section 4.1].
///
/// ```text
/// AuthenticatedSafe ::= SEQUENCE OF ContentInfo
///        -- Data if unencrypted
///        -- EncryptedData if password-encrypted
///        -- EnvelopedData if public key-encrypted
/// ```
///
/// [RFC 7292 Section 4.1]: https://www.rfc-editor.org/rfc/rfc7292#section-4.1
pub type AuthenticatedSafe<'a> = Vec<ContentInfo>;