ata() generates a PKCS#7 ContentInfo object of encrypted-data type from the set of safeBags <i>bags</i>. The algorithm ID in <i>pbe_nid</i> can be a PKCS#12 or PKCS#5 password based encryption algorithm, or a cipher algorithm. If a cipher algorithm is passed, the PKCS#5 PBES2 algorithm will be used with this cipher as a parameter. The password <i>pass</i> of length <i>passlen</i>, salt <i>salt</i> of length <i>saltlen</i> and iteration count <i>iter</i> are inputs into the encryption operation.</p>

<p>PKCS