Lines Matching refs:rbuf
74 char *rbuf, size_t *rbuflen)
154 /* figure out the key. use rbuf as a temporary buffer. */
155 i = DH_compute_key((unsigned char *)rbuf, bn, dh);
158 CAST_set_key(&castkey, i, (unsigned char *)rbuf);
162 memcpy(rbuf, &sessid, sizeof(sessid));
163 rbuf += sizeof(sessid);
167 BN_bn2bin(dh->pub_key, (unsigned char *)rbuf);
168 rbuf += KEYSIZE;
178 memcpy(rbuf, &randbuf, sizeof(randbuf));
187 memcpy(rbuf + KEYSIZE, name, KEYSIZE);
189 memset(rbuf + KEYSIZE, 0, KEYSIZE);
193 CAST_cbc_encrypt((unsigned char *)rbuf, (unsigned char *)rbuf, CRYPTBUFLEN, &castkey, iv, CAST_ENCRYPT);
208 char *rbuf, size_t *rbuflen)
237 return (pwd_login(obj, username, ulen, uam_pwd, ibuf, ibuflen, rbuf, rbuflen));
249 char *rbuf, size_t *rbuflen)
271 return (pwd_login(obj, username, ulen, uam_pwd, ibuf, ibuflen, rbuf, rbuflen));
276 char *rbuf, size_t *rbuflen)
295 /* use rbuf as scratch space */
296 CAST_cbc_encrypt((unsigned char *)ibuf, (unsigned char *)rbuf, CRYPT2BUFLEN, &castkey,
301 if (!(bn1 = BN_bin2bn((unsigned char *)rbuf, KEYSIZE, NULL)))
310 memset(rbuf, 0, sizeof(randbuf));
312 rbuf += KEYSIZE;
331 rbuf[PASSWDLEN] = '\0';
342 NULL, FALSE, NULL, rbuf ) != SIASUCCESS )
345 memset( rbuf, 0, PASSWDLEN );
350 p = crypt( rbuf, dhxpwd->pw_passwd );
351 memset(rbuf, 0, PASSWDLEN);