Searched refs:bulkkey (Results 1 - 25 of 59) sorted by relevance

123

/macosx-10.10/Security-57031.1.35/Security/include/security_smime/
H A Dcmsencdata.c145 SecSymmetricKeyRef bulkkey = NULL; local
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; local
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, algi
225 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmsenvdata.c166 SecSymmetricKeyRef bulkkey = NULL; local
226 &bulkkey);
234 rv = SecCmsRecipientInfoWrapBulkKey(recipientinfos[i], bulkkey, bulkalgtag);
246 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
250 CFRelease(bulkkey);
257 if (bulkkey)
258 CFRelease(bulkkey);
273 SecSymmetricKeyRef bulkkey; local
278 /* find bulkkey and algorithm - must have been set by SecCmsEnvelopedDataEncodeBeforeStart */
279 bulkkey
320 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmscinfo.c92 if (cinfo->bulkkey)
93 CFRelease(cinfo->bulkkey);
94 /* @@@ private key is only here as a workaround for 3401088. Note this *must* be released after bulkkey */
396 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey) argument
400 cinfo->bulkkey = bulkkey;
401 CFRetain(cinfo->bulkkey);
402 SecKeyGetCSSMKey(cinfo->bulkkey, &cssmKey);
409 if (cinfo->bulkkey == NULL)
412 CFRetain(cinfo->bulkkey);
[all...]
H A Dcmsrecinfo.c447 SecCmsRecipientInfoWrapBulkKey(SecCmsRecipientInfoRef ri, SecSymmetricKeyRef bulkkey, argument
499 rv = SecCmsUtilEncryptSymKeyRSA(poolp, cert, bulkkey,
506 bulkkey, &ri->ri.keyTransRecipientInfo.encKey);
517 rv = SecCmsUtilEncryptSymKeyMISSI(poolp, cert, bulkkey,
548 rv = SecCmsUtilEncryptSymKeyESDH(poolp, cert, bulkkey,
585 rv = SecCmsUtilEncryptSymKeyECDH(poolp, cert, bulkkey,
619 SecSymmetricKeyRef bulkkey = NULL; local
637 bulkkey = SecCmsUtilDecryptSymKeyRSA(privkey, enckey, bulkalgtag);
643 bulkkey = SecCmsUtilDecryptSymKeyMISSI(privkey, enckey, encalg, bulkalgtag, ri->cmsg->pwfn_arg);
682 bulkkey
[all...]
H A Dcmspubkey.c65 SecSymmetricKeyRef bulkkey,
75 rv = SecCmsUtilEncryptSymKeyRSAPubKey(poolp, publickey, bulkkey, encKey);
83 SecSymmetricKeyRef bulkkey, CSSM_DATA_PTR encKey)
115 rv = WRAP_PubWrapSymKey(publickey, bulkkey, encKey);
151 SecCmsUtilEncryptSymKeyMISSI(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey,
256 err = PK11_WrapSymKey(CKM_SKIPJACK_WRAP, NULL, tek, bulkkey, encKey);
264 err = PK11_WrapSymKey(CKM_SKIPJACK_CBC64, &keaParams.nonSkipjackIV, tek, bulkkey, encKey);
268 if (encKey->Length != PK11_GetKeyLength(bulkkey)) {
273 if (SEC_ASN1EncodeInteger(arena, &keaParams.bulkKeySize, PK11_GetKeyLength(bulkkey)) == NULL)
321 SecSymmetricKeyRef bulkkey;
64 SecCmsUtilEncryptSymKeyRSA(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey, CSSM_DATA_PTR encKey) argument
81 SecCmsUtilEncryptSymKeyRSAPubKey(PLArenaPool *poolp, SecPublicKeyRef publickey, SecSymmetricKeyRef bulkkey, CSSM_DATA_PTR encKey) argument
[all...]
H A DSecCmsContentInfo.h193 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey);
H A Dcryptohi.h134 SecSymmetricKeyRef bulkkey,
/macosx-10.10/Security-57031.1.35/Security/libsecurity_smime/lib/
H A Dcmsencdata.c145 SecSymmetricKeyRef bulkkey = NULL; local
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; local
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, algi
225 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmsenvdata.c166 SecSymmetricKeyRef bulkkey = NULL; local
226 &bulkkey);
234 rv = SecCmsRecipientInfoWrapBulkKey(recipientinfos[i], bulkkey, bulkalgtag);
246 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
250 CFRelease(bulkkey);
257 if (bulkkey)
258 CFRelease(bulkkey);
273 SecSymmetricKeyRef bulkkey; local
278 /* find bulkkey and algorithm - must have been set by SecCmsEnvelopedDataEncodeBeforeStart */
279 bulkkey
320 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmscinfo.c92 if (cinfo->bulkkey)
93 CFRelease(cinfo->bulkkey);
94 /* @@@ private key is only here as a workaround for 3401088. Note this *must* be released after bulkkey */
396 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey) argument
400 cinfo->bulkkey = bulkkey;
401 CFRetain(cinfo->bulkkey);
402 SecKeyGetCSSMKey(cinfo->bulkkey, &cssmKey);
409 if (cinfo->bulkkey == NULL)
412 CFRetain(cinfo->bulkkey);
[all...]
H A Dcmsrecinfo.c447 SecCmsRecipientInfoWrapBulkKey(SecCmsRecipientInfoRef ri, SecSymmetricKeyRef bulkkey, argument
499 rv = SecCmsUtilEncryptSymKeyRSA(poolp, cert, bulkkey,
506 bulkkey, &ri->ri.keyTransRecipientInfo.encKey);
517 rv = SecCmsUtilEncryptSymKeyMISSI(poolp, cert, bulkkey,
548 rv = SecCmsUtilEncryptSymKeyESDH(poolp, cert, bulkkey,
585 rv = SecCmsUtilEncryptSymKeyECDH(poolp, cert, bulkkey,
619 SecSymmetricKeyRef bulkkey = NULL; local
637 bulkkey = SecCmsUtilDecryptSymKeyRSA(privkey, enckey, bulkalgtag);
643 bulkkey = SecCmsUtilDecryptSymKeyMISSI(privkey, enckey, encalg, bulkalgtag, ri->cmsg->pwfn_arg);
682 bulkkey
[all...]
H A Dcmspubkey.c65 SecSymmetricKeyRef bulkkey,
75 rv = SecCmsUtilEncryptSymKeyRSAPubKey(poolp, publickey, bulkkey, encKey);
83 SecSymmetricKeyRef bulkkey, CSSM_DATA_PTR encKey)
115 rv = WRAP_PubWrapSymKey(publickey, bulkkey, encKey);
151 SecCmsUtilEncryptSymKeyMISSI(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey,
256 err = PK11_WrapSymKey(CKM_SKIPJACK_WRAP, NULL, tek, bulkkey, encKey);
264 err = PK11_WrapSymKey(CKM_SKIPJACK_CBC64, &keaParams.nonSkipjackIV, tek, bulkkey, encKey);
268 if (encKey->Length != PK11_GetKeyLength(bulkkey)) {
273 if (SEC_ASN1EncodeInteger(arena, &keaParams.bulkKeySize, PK11_GetKeyLength(bulkkey)) == NULL)
321 SecSymmetricKeyRef bulkkey;
64 SecCmsUtilEncryptSymKeyRSA(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey, CSSM_DATA_PTR encKey) argument
81 SecCmsUtilEncryptSymKeyRSAPubKey(PLArenaPool *poolp, SecPublicKeyRef publickey, SecSymmetricKeyRef bulkkey, CSSM_DATA_PTR encKey) argument
[all...]
H A DSecCmsContentInfo.h193 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey);
/macosx-10.10/Security-57031.1.35/libsecurity_smime/Security/
H A Dcmsencdata.c150 SecSymmetricKeyRef bulkkey = NULL; local
165 bulkkey = (*encd->contentInfo.cmsg->decrypt_key_cb)(encd->contentInfo.cmsg->decrypt_key_cb_arg,
167 if (bulkkey == NULL)
171 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
172 CFRelease(bulkkey); /* This assumes the decrypt_key_cb hands us a copy of the key --mb */
184 SecSymmetricKeyRef bulkkey; local
189 /* find bulkkey and algorithm - must have been set by SecCmsEncryptedDataEncodeBeforeStart */
190 bulkkey = SecCmsContentInfoGetBulkKey(cinfo);
191 if (bulkkey == NULL)
200 cinfo->ciphcx = SecCmsCipherContextStartEncrypt(encd->contentInfo.cmsg->poolp, bulkkey, algi
230 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmsenvdata.c172 SecSymmetricKeyRef bulkkey = NULL; local
235 &bulkkey);
243 bulkkey = (SecSymmetricKeyRef)CFDataCreate(kCFAllocatorDefault, key_material, keysize);
251 rv = SecCmsRecipientInfoWrapBulkKey(recipientinfos[i], bulkkey, bulkalgtag);
263 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
267 CFRelease(bulkkey);
274 if (bulkkey)
275 CFRelease(bulkkey);
290 SecSymmetricKeyRef bulkkey; local
295 /* find bulkkey an
337 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmspubkey.c61 SecSymmetricKeyRef bulkkey,
74 rv = SecCmsUtilEncryptSymKeyRSAPubKey(poolp, publickey, bulkkey, encKey);
82 SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey)
118 rv = WRAP_PubWrapSymKey(publickey, bulkkey, encKey);
154 SecCmsUtilEncryptSymKeyMISSI(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey,
261 err = PK11_WrapSymKey(CKM_SKIPJACK_WRAP, NULL, tek, bulkkey, encKey);
269 err = PK11_WrapSymKey(CKM_SKIPJACK_CBC64, &keaParams.nonSkipjackIV, tek, bulkkey, encKey);
273 if (encKey->Length != PK11_GetKeyLength(bulkkey)) {
278 if (SEC_ASN1EncodeInteger(arena, &keaParams.bulkKeySize, PK11_GetKeyLength(bulkkey)) == NULL)
326 SecSymmetricKeyRef bulkkey;
60 SecCmsUtilEncryptSymKeyRSA(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey) argument
80 SecCmsUtilEncryptSymKeyRSAPubKey(PLArenaPool *poolp, SecPublicKeyRef publickey, SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey) argument
[all...]
H A Dcmscinfo.c88 if (cinfo->bulkkey)
89 CFRelease(cinfo->bulkkey);
90 /* @@@ private key is only here as a workaround for 3401088. Note this *must* be released after bulkkey */
364 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey) argument
369 cinfo->bulkkey = bulkkey;
370 CFRetain(cinfo->bulkkey);
372 SecKeyGetCSSMKey(cinfo->bulkkey, &cssmKey);
376 cinfo->keysize = (int)CFDataGetLength((CFDataRef)bulkkey) * 8;
383 if (cinfo->bulkkey
[all...]
/macosx-10.10/Security-57031.1.35/libsecurity_smime/lib/
H A Dcmsencdata.c150 SecSymmetricKeyRef bulkkey = NULL; local
165 bulkkey = (*encd->contentInfo.cmsg->decrypt_key_cb)(encd->contentInfo.cmsg->decrypt_key_cb_arg,
167 if (bulkkey == NULL)
171 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
172 CFRelease(bulkkey); /* This assumes the decrypt_key_cb hands us a copy of the key --mb */
184 SecSymmetricKeyRef bulkkey; local
189 /* find bulkkey and algorithm - must have been set by SecCmsEncryptedDataEncodeBeforeStart */
190 bulkkey = SecCmsContentInfoGetBulkKey(cinfo);
191 if (bulkkey == NULL)
200 cinfo->ciphcx = SecCmsCipherContextStartEncrypt(encd->contentInfo.cmsg->poolp, bulkkey, algi
230 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmsenvdata.c172 SecSymmetricKeyRef bulkkey = NULL; local
235 &bulkkey);
243 bulkkey = (SecSymmetricKeyRef)CFDataCreate(kCFAllocatorDefault, key_material, keysize);
251 rv = SecCmsRecipientInfoWrapBulkKey(recipientinfos[i], bulkkey, bulkalgtag);
263 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
267 CFRelease(bulkkey);
274 if (bulkkey)
275 CFRelease(bulkkey);
290 SecSymmetricKeyRef bulkkey; local
295 /* find bulkkey an
337 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmspubkey.c61 SecSymmetricKeyRef bulkkey,
74 rv = SecCmsUtilEncryptSymKeyRSAPubKey(poolp, publickey, bulkkey, encKey);
82 SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey)
118 rv = WRAP_PubWrapSymKey(publickey, bulkkey, encKey);
154 SecCmsUtilEncryptSymKeyMISSI(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey,
261 err = PK11_WrapSymKey(CKM_SKIPJACK_WRAP, NULL, tek, bulkkey, encKey);
269 err = PK11_WrapSymKey(CKM_SKIPJACK_CBC64, &keaParams.nonSkipjackIV, tek, bulkkey, encKey);
273 if (encKey->Length != PK11_GetKeyLength(bulkkey)) {
278 if (SEC_ASN1EncodeInteger(arena, &keaParams.bulkKeySize, PK11_GetKeyLength(bulkkey)) == NULL)
326 SecSymmetricKeyRef bulkkey;
60 SecCmsUtilEncryptSymKeyRSA(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey) argument
80 SecCmsUtilEncryptSymKeyRSAPubKey(PLArenaPool *poolp, SecPublicKeyRef publickey, SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey) argument
[all...]
H A Dcmscinfo.c88 if (cinfo->bulkkey)
89 CFRelease(cinfo->bulkkey);
90 /* @@@ private key is only here as a workaround for 3401088. Note this *must* be released after bulkkey */
364 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey) argument
369 cinfo->bulkkey = bulkkey;
370 CFRetain(cinfo->bulkkey);
372 SecKeyGetCSSMKey(cinfo->bulkkey, &cssmKey);
376 cinfo->keysize = (int)CFDataGetLength((CFDataRef)bulkkey) * 8;
383 if (cinfo->bulkkey
[all...]
/macosx-10.10/Security-57031.1.35/libsecurity_smime/security_smime/
H A Dcmsencdata.c150 SecSymmetricKeyRef bulkkey = NULL; local
165 bulkkey = (*encd->contentInfo.cmsg->decrypt_key_cb)(encd->contentInfo.cmsg->decrypt_key_cb_arg,
167 if (bulkkey == NULL)
171 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
172 CFRelease(bulkkey); /* This assumes the decrypt_key_cb hands us a copy of the key --mb */
184 SecSymmetricKeyRef bulkkey; local
189 /* find bulkkey and algorithm - must have been set by SecCmsEncryptedDataEncodeBeforeStart */
190 bulkkey = SecCmsContentInfoGetBulkKey(cinfo);
191 if (bulkkey == NULL)
200 cinfo->ciphcx = SecCmsCipherContextStartEncrypt(encd->contentInfo.cmsg->poolp, bulkkey, algi
230 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmsenvdata.c172 SecSymmetricKeyRef bulkkey = NULL; local
235 &bulkkey);
243 bulkkey = (SecSymmetricKeyRef)CFDataCreate(kCFAllocatorDefault, key_material, keysize);
251 rv = SecCmsRecipientInfoWrapBulkKey(recipientinfos[i], bulkkey, bulkalgtag);
263 SecCmsContentInfoSetBulkKey(cinfo, bulkkey);
267 CFRelease(bulkkey);
274 if (bulkkey)
275 CFRelease(bulkkey);
290 SecSymmetricKeyRef bulkkey; local
295 /* find bulkkey an
337 SecSymmetricKeyRef bulkkey = NULL; local
[all...]
H A Dcmspubkey.c61 SecSymmetricKeyRef bulkkey,
74 rv = SecCmsUtilEncryptSymKeyRSAPubKey(poolp, publickey, bulkkey, encKey);
82 SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey)
118 rv = WRAP_PubWrapSymKey(publickey, bulkkey, encKey);
154 SecCmsUtilEncryptSymKeyMISSI(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey,
261 err = PK11_WrapSymKey(CKM_SKIPJACK_WRAP, NULL, tek, bulkkey, encKey);
269 err = PK11_WrapSymKey(CKM_SKIPJACK_CBC64, &keaParams.nonSkipjackIV, tek, bulkkey, encKey);
273 if (encKey->Length != PK11_GetKeyLength(bulkkey)) {
278 if (SEC_ASN1EncodeInteger(arena, &keaParams.bulkKeySize, PK11_GetKeyLength(bulkkey)) == NULL)
326 SecSymmetricKeyRef bulkkey;
60 SecCmsUtilEncryptSymKeyRSA(PLArenaPool *poolp, SecCertificateRef cert, SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey) argument
80 SecCmsUtilEncryptSymKeyRSAPubKey(PLArenaPool *poolp, SecPublicKeyRef publickey, SecSymmetricKeyRef bulkkey, SecAsn1Item * encKey) argument
[all...]
H A Dcmscinfo.c88 if (cinfo->bulkkey)
89 CFRelease(cinfo->bulkkey);
90 /* @@@ private key is only here as a workaround for 3401088. Note this *must* be released after bulkkey */
364 SecCmsContentInfoSetBulkKey(SecCmsContentInfoRef cinfo, SecSymmetricKeyRef bulkkey) argument
369 cinfo->bulkkey = bulkkey;
370 CFRetain(cinfo->bulkkey);
372 SecKeyGetCSSMKey(cinfo->bulkkey, &cssmKey);
376 cinfo->keysize = (int)CFDataGetLength((CFDataRef)bulkkey) * 8;
383 if (cinfo->bulkkey
[all...]

Completed in 221 milliseconds

123