• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/libsecurity_smime/lib/

Lines Matching defs:cipher

72     long cipher;		/* optimization */
131 unsigned long cipher;
140 /* cipher algtag parms enabled allowed */
153 * smime_mapi_by_cipher - find index into smime_cipher_map by cipher
156 smime_mapi_by_cipher(unsigned long cipher)
161 if (smime_cipher_map[i].cipher == cipher)
188 /* do we try to turn on a forbidden cipher? */
235 nss_smime_get_cipher_for_alg_and_key(SECAlgorithmID *algid, SecSymmetricKeyRef key, unsigned long *cipher)
275 *cipher = c;
366 return smime_cipher_map[i].cipher; /* match found, point to cipher */
370 * smime_choose_cipher - choose a cipher that works for all the recipients
379 long cipher;
406 * that the strong cipher. Otherwise, use triple-DES. */
420 /* the first cipher that matches in the user's SMIME profile gets
422 * and so on. If every cipher matches, the last one gets 1 (one) vote */
437 cipher = nss_SMIME_FindCipherForSMIMECap(caps[i]);
438 mapi = smime_mapi_by_cipher(cipher);
440 /* found the cipher */
454 * if recipient's public key length is > 512, vote for a strong cipher
456 * has an export-level public key, the strong cipher is disabled.
486 /* find cipher that is agreeable by all recipients and that has the most votes */
492 /* if cipher is not enabled or not allowed by policy, forget it */
495 /* if we're not doing fortezza, but the cipher is fortezza, forget it */
496 if (!scert_is_fortezza && (smime_cipher_map[mapi].cipher == SMIME_FORTEZZA))
502 chosen_cipher = smime_cipher_map[mapi].cipher;
506 /* if no common cipher was found, chosen_cipher stays at the default */
561 * prevented a strong cipher from being used...
566 unsigned long cipher;
569 cipher = smime_choose_cipher(NULL, rcerts);
570 mapi = smime_mapi_by_cipher(cipher);
573 *keysize = smime_keysize_by_cipher(smime_cipher_map[mapi].cipher);
612 * We walk the cipher list backwards, as it is ordered by increasing strength,
613 * we prefer the stronger cipher over a weaker one, and we have to list the
616 /* Find the corresponding entry in the cipher map. */
624 if ((!includeFortezzaCiphers) && (map->cipher == SMIME_FORTEZZA))
641 cap->cipher = smime_cipher_map[i].cipher;