Lines Matching +defs:val +defs:output

291     unsigned val = 0;
296 val ^= i;
297 val <<= 1;
301 return val;
753 char *output,
760 (void *) output,
768 padding = output[inputlen - 11];
775 if (output[inputlen - 10 - p] != padding) {
784 memcpy(digest, output + inputlen - 10, 10);
793 char *output,
804 memcpy(output, input, inputlen); /* text */
805 memset(output+inputlen, paddinglen, paddinglen);/* pad */
806 memcpy(output+inputlen+paddinglen, digest, 10); /* hmac */
810 des_ede2_cbc_encrypt((void *) output,
811 (void *) output,
874 char *output,
881 (void *) output,
892 padding = output[inputlen - 11];
899 if (output[inputlen - 10 - p] != padding) {
908 memcpy(digest, output + inputlen - 10, 10);
917 char *output,
928 memcpy(output, input, inputlen); /* text */
929 memset(output+inputlen, paddinglen, paddinglen);/* pad */
930 memcpy(output+inputlen+paddinglen, digest, 10); /* hmac */
934 des_cbc_encrypt((void *) output,
935 (void *) output,
943 memcpy(c->ivec, output + (len - 8), 8);
1028 char *output,
1053 *output++ = *input++ ^ K;
1062 char *output,
1087 *output++ = *input++ ^ K;
1145 char *output,
1150 input, output, inputlen-10);
1166 char *output,
1175 output,
1181 (output)+inputlen, 10);
1474 char *output,
1484 inputlen - MAC_SIZE, (CK_BYTE_PTR)output, &ulDataLen);
1514 char *output,
1524 (CK_BYTE_PTR)output, &ulDataLen);
1535 (CK_BYTE_PTR)output + inputlen, &ulDigestLen);
1555 char *output,
1565 inputlen, (CK_BYTE_PTR)output, &ulDataLen);
1583 padding = output[inputlen - 11];
1590 if (output[inputlen - MAC_SIZE - p] != padding) {
1599 memcpy(digest, output + inputlen - MAC_SIZE, MAC_SIZE);
1609 char *output,
1622 memcpy(output, input, inputlen); /* text */
1623 memset(output+inputlen, paddinglen, paddinglen);/* pad */
1624 memcpy(output+inputlen+paddinglen, digest, MAC_SIZE); /* hmac */
1628 rv = C_EncryptUpdate(enc_context->hSession, (CK_BYTE_PTR)output, ulDataLen,
1629 (CK_BYTE_PTR)output, &ulDataLen);
1727 const char **output,
1739 if(!context || !invec || !numiov || !output || !outputlen) {
1755 /* make sure the output buffer is big enough for this blob */
1770 /* We can just use the output buffer because it's big enough */
1804 *output = text->encode_buf;
1814 char **output,
1861 *output=NULL;
1880 *output=NULL;
1899 *output = text->decode_once_buf;
1903 *output, outputlen);
1939 memcpy(text->decode_tmp_buf + 4, *output, *outputlen);
1987 const char **output, unsigned *outputlen)
1996 *output = text->decode_buf;
2005 const char **output,
2015 if(!context || !invec || !numiov || !output || !outputlen) {
2032 /* construct output */
2040 /* we can just use the output buffer */
2062 /* copy into output */
2074 *output = text->encode_buf;
2126 char **output, unsigned *outputlen)
2150 /* ok make output message */
2157 *output = text->decode_once_buf;
2158 memcpy(*output, buf, bufsize - 16);
2160 (*output)[*outputlen] = 0;
2169 char **output,
2210 *output = NULL;
2227 *output = NULL;
2236 output, outputlen);
2248 const char **output, unsigned *outputlen)
2257 *output = text->decode_buf;
3031 * username-value = qdstr-val cnonce = "cnonce" "=" <">
3032 * cnonce-value <"> cnonce-value = qdstr-val nonce-count = "nc"
3060 unsigned val = hash(username) % text->reauth->size;
3064 if (text->reauth->e[val].authid &&
3065 !strcmp(username, text->reauth->e[val].authid)) {
3067 _plug_strdup(sparams->utils, text->reauth->e[val].realm,
3070 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].nonce,
3073 _plug_strdup(sparams->utils, text->reauth->e[val].nonce,
3076 text->nonce_count = ++text->reauth->e[val].nonce_count;
3078 _plug_strdup(sparams->utils, (char *)text->reauth->e[val].cnonce,
3081 _plug_strdup(sparams->utils, text->reauth->e[val].cnonce,
3084 stext->timestamp = text->reauth->e[val].u.s.timestamp;
3515 unsigned val = hash(username) % text->reauth->size;
3522 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3523 text->reauth->e[val].authid = username; username = NULL;
3524 text->reauth->e[val].realm = text->realm; text->realm = NULL;
3525 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
3526 text->reauth->e[val].cnonce = cnonce; cnonce = NULL;
3528 if (text->nonce_count <= text->reauth->e[val].nonce_count) {
3530 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
3533 text->reauth->e[val].nonce_count = text->nonce_count;
3534 text->reauth->e[val].u.s.timestamp = time(0);
3540 clear_reauth_entry(&text->reauth->e[val], SERVER, sparams->utils);
4797 unsigned val;
4806 val = hash(params->serverFQDN) % text->reauth->size;
4808 if (text->reauth->e[val].u.c.serverFQDN &&
4809 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
4811 !strcmp(text->reauth->e[val].authid, oparams->authid)) {
4819 _plug_strdup(params->utils, text->reauth->e[val].realm,
4822 _plug_strdup(params->utils, (char *)text->reauth->e[val].nonce,
4825 _plug_strdup(params->utils, text->reauth->e[val].nonce,
4828 text->nonce_count = ++text->reauth->e[val].nonce_count;
4830 _plug_strdup(params->utils, (char *)text->reauth->e[val].cnonce,
4833 _plug_strdup(params->utils, text->reauth->e[val].cnonce,
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;
5005 unsigned val = hash(params->serverFQDN) % text->reauth->size;
5010 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);
5012 &text->reauth->e[val].authid, NULL);
5013 text->reauth->e[val].realm = text->realm; text->realm = NULL;
5014 text->reauth->e[val].nonce = text->nonce; text->nonce = NULL;
5015 text->reauth->e[val].nonce_count = text->nonce_count;
5016 text->reauth->e[val].cnonce = text->cnonce; text->cnonce = NULL;
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;
5032 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);
5056 unsigned val = hash(params->serverFQDN) % text->reauth->size;
5072 reauth = text->reauth->e[val].u.c.serverFQDN &&
5073 !strcasecmp(text->reauth->e[val].u.c.serverFQDN,
5108 clear_reauth_entry(&text->reauth->e[val], CLIENT, params->utils);