Lines Matching refs:rbuf
79 char *rbuf, size_t *rbuflen)
159 /* figure out the key. use rbuf as a temporary buffer. */
160 i = DH_compute_key((unsigned char *)rbuf, bn, dh);
163 CAST_set_key(&castkey, i, (unsigned char *)rbuf);
167 memcpy(rbuf, &sessid, sizeof(sessid));
168 rbuf += sizeof(sessid);
172 BN_bn2bin(dh->pub_key, (unsigned char *)rbuf);
173 rbuf += KEYSIZE;
183 memcpy(rbuf, &randbuf, sizeof(randbuf));
192 memcpy(rbuf + KEYSIZE, name, KEYSIZE);
194 memset(rbuf + KEYSIZE, 0, KEYSIZE);
198 CAST_cbc_encrypt((unsigned char *)rbuf, (unsigned char *)rbuf, CRYPTBUFLEN, &castkey, iv, CAST_ENCRYPT);
213 char *rbuf, size_t *rbuflen)
242 return (pwd_login(obj, username, ulen, uam_pwd, ibuf, ibuflen, rbuf, rbuflen));
254 char *rbuf, size_t *rbuflen)
276 return (pwd_login(obj, username, ulen, uam_pwd, ibuf, ibuflen, rbuf, rbuflen));
281 char *rbuf, size_t *rbuflen)
300 /* use rbuf as scratch space */
301 CAST_cbc_encrypt((unsigned char *)ibuf, (unsigned char *)rbuf, CRYPT2BUFLEN, &castkey,
306 if (!(bn1 = BN_bin2bn((unsigned char *)rbuf, KEYSIZE, NULL)))
315 memset(rbuf, 0, sizeof(randbuf));
317 rbuf += KEYSIZE;
336 rbuf[PASSWDLEN] = '\0';
347 NULL, FALSE, NULL, rbuf ) != SIASUCCESS )
350 memset( rbuf, 0, PASSWDLEN );
355 p = crypt( rbuf, dhxpwd->pw_passwd );
356 memset(rbuf, 0, PASSWDLEN);