pub(crate) fn random_encryption_options(self) -> Result<EncryptionOptions, Error> {
        use self::ContentEncryptionAlgorithm::*;
        match self {
            A128GCM | A192GCM | A256GCM => Ok(EncryptionOptions::AES_GCM {
                nonce: random_aes_gcm_nonce()?,
            }),
            _ => Err(Error::UnsupportedOperation),
        }
    }
/// Generate a new random `EncryptionOptions` based on the algorithm
Generate a new random `EncryptionOptions` based on the algorithm
Generate a new random ` EncryptionOptions ` based on the algorithm
pub(crate) fn random_encryption_options(self) -> Result<EncryptionOptions, Error> {
        use self::ContentEncryptionAlgorithm::*;
        match self {
            A128GCM | A192GCM | A256GCM => Ok(EncryptionOptions::AES_GCM {
                nonce: random_aes_gcm_nonce()?,
            }),
            _ => Err(Error::UnsupportedOperation),
        }
    }
pub ( crate ) fn random_encryption_options ( self ) -> Result < EncryptionOptions , Error > { use self :: ContentEncryptionAlgorithm :: * ; match self { A128GCM | A192GCM | A256GCM => Ok ( EncryptionOptions :: AES_GCM { nonce : random_aes_gcm_nonce ( ) ? , } ) , _ => Err ( Error :: UnsupportedOperation ) , } }
Generate a new random `EncryptionOptions` based on the algorithm
Generate a new random ` EncryptionOptions ` based on the algorithm
self
self