Lines Matching defs:bulkkey
145 SecSymmetricKeyRef bulkkey = NULL;
160 bulkkey = (*encd->cmsg->decrypt_key_cb)(encd->cmsg->decrypt_key_cb_arg,
162 if (bulkkey == NULL)
166 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
167 CFRelease(bulkkey); /* This assumes the decrypt_key_cb hands us a copy of the key --mb */
179 SecSymmetricKeyRef bulkkey;
184 /* find bulkkey and algorithm - must have been set by SecCmsEncryptedDataEncodeBeforeStart */
185 bulkkey = SecCmsContentInfoGetBulkKey(cinfo);
186 if (bulkkey == NULL)
195 cinfo->ciphcx = SecCmsCipherContextStartEncrypt(encd->cmsg->poolp, bulkkey, algid);
196 CFRelease(bulkkey);
225 SecSymmetricKeyRef bulkkey = NULL;
237 bulkkey = (*encd->cmsg->decrypt_key_cb)(encd->cmsg->decrypt_key_cb_arg, bulkalg);
238 if (bulkkey == NULL)
242 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
244 cinfo->ciphcx = SecCmsCipherContextStartDecrypt(bulkkey, bulkalg);
253 * For PKCS5 Encryption Algorithms, the bulkkey is actually a different
254 * structure. Therefore, we need to set the bulkkey to the actual key
258 SEC_PKCS5KeyAndPassword *keyPwd = (SEC_PKCS5KeyAndPassword *)bulkkey;
259 bulkkey = keyPwd->key;
263 /* we are done with (this) bulkkey now. */
264 CFRelease(bulkkey);