Lines Matching defs:obfbuf
78 unsigned char *obfbuf;
166 obfbuf = talloc_array(tmp_ctx, unsigned char, obufsize);
167 if (!obfbuf) {
173 SAFEALIGN_SET_UINT16(&obfbuf[p], meth, &p);
175 SAFEALIGN_SET_UINT16(&obfbuf[p], result_len, &p);
176 safealign_memcpy(&obfbuf[p], cctx->key->data, mech_props->keylen, &p);
177 safealign_memcpy(&obfbuf[p], cctx->iv->data, mech_props->bsize, &p);
178 safealign_memcpy(&obfbuf[p], cryptotext, result_len, &p);
179 safealign_memcpy(&obfbuf[p], OBF_BUFFER_SENTINEL,
183 *obfpwd = sss_base64_encode(mem_ctx, obfbuf, obufsize);
207 unsigned char *obfbuf = NULL;
233 obfbuf = sss_base64_decode(tmp_ctx, b64encoded, &obflen);
234 if (!obfbuf) {
240 SAFEALIGN_COPY_UINT16_CHECK(&meth, obfbuf+p, obflen, &p);
242 SAFEALIGN_COPY_UINT16_CHECK(&ctsize, obfbuf+p, obflen, &p);
253 obfbuf + p + mech_props->keylen + mech_props->bsize + ctsize,
269 safealign_memcpy(keybuf, obfbuf+p, mech_props->keylen, &p);
276 safealign_memcpy(ivbuf, obfbuf+p, mech_props->bsize, &p);
283 safealign_memcpy(cryptotext, obfbuf+p, ctsize, &p);