Lines Matching +defs:template +defs:c
10 * $Id: digestmd5.c,v 1.153 2003/03/30 22:17:06 leg Exp $
13 * Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved.
122 static const char plugin_id[] = "$Id: digestmd5.c,v 1.153 2003/03/30 22:17:06 leg Exp $";
196 } c; /* client stuff */
756 des_context_t *c = (des_context_t *) text->cipher_dec_context;
762 c->keysched,
763 c->keysched2,
764 &c->ivec,
796 des_context_t *c = (des_context_t *) text->cipher_enc_context;
813 c->keysched,
814 c->keysched2,
815 &c->ivec,
827 des_context_t *c;
831 c = (des_context_t *) text->utils->malloc(2 * sizeof(des_context_t));
832 if (c == NULL) return SASL_NOMEM;
836 if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0)
840 if (des_key_sched((des_cblock *) keybuf, c->keysched2) < 0)
842 memcpy(c->ivec, ((char *) enckey) + 8, 8);
844 text->cipher_enc_context = (cipher_context_t *) c;
847 c++;
849 if (des_key_sched((des_cblock *) keybuf, c->keysched) < 0)
853 if (des_key_sched((des_cblock *) keybuf, c->keysched2) < 0)
856 memcpy(c->ivec, ((char *) deckey) + 8, 8);
858 text->cipher_dec_context = (cipher_context_t *) c;
877 des_context_t *c = (des_context_t *) text->cipher_dec_context;
883 c->keysched,
884 &c->ivec,
889 memcpy(c->ivec, input + (inputlen - 8), 8);
920 des_context_t *c = (des_context_t *) text->cipher_enc_context;
937 c->keysched,
938 &c->ivec,
943 memcpy(c->ivec, output + (len - 8), 8);
954 des_context_t *c;
958 c = (des_context_t *) text->utils->malloc(2 * sizeof(des_context_t));
959 if (c == NULL) return SASL_NOMEM;
963 des_key_sched((des_cblock *) keybuf, c->keysched);
965 memcpy(c->ivec, ((char *) enckey) + 8, 8);
967 text->cipher_enc_context = (cipher_context_t *) c;
970 c++;
972 des_key_sched((des_cblock *) keybuf, c->keysched);
974 memcpy(c->ivec, ((char *) deckey) + 8, 8);
976 text->cipher_dec_context = (cipher_context_t *) c;
1264 CK_ATTRIBUTE template[] = {
1270 template[0].pValue = &class;
1271 template[1].pValue = &keyType;
1272 template[2].pValue = &true;
1278 template[3].ulValueLen = 24;
1280 template[3].ulValueLen = 8;
1282 template[3].pValue = keybuf;
1286 template[3].pValue = enckey;
1306 rv = C_CreateObject(enc_context->hSession, template,
1307 sizeof (template)/sizeof (template[0]), &enc_context->hKey);
1345 template[2].type = CKA_DECRYPT;
1354 template[3].pValue = deckey;
1357 rv = C_CreateObject(dec_context->hSession, template,
1358 sizeof (template)/sizeof (template[0]), &dec_context->hKey);
2307 if (reauth->u.c.serverFQDN) utils->free(reauth->u.c.serverFQDN);
2505 case 'c':
3039 * "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" cipher =
4808 if (text->reauth->e[val].u.c.serverFQDN &&
4809 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
4836 ctext->protection = text->reauth->e[val].u.c.protection;
4837 ctext->cipher = text->reauth->e[val].u.c.cipher;
4838 ctext->server_maxbuf = text->reauth->e[val].u.c.server_maxbuf;
5018 &text->reauth->e[val].u.c.serverFQDN, NULL);
5019 text->reauth->e[val].u.c.protection = ctext->protection;
5020 text->reauth->e[val].u.c.cipher = ctext->cipher;
5021 text->reauth->e[val].u.c.server_maxbuf = ctext->server_maxbuf;
5072 reauth = text->reauth->e[val].u.c.serverFQDN &&
5073 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,