Lines Matching defs:ivbuf
77 unsigned char *ivbuf;
111 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize);
112 if (ivbuf == NULL) {
118 RAND_bytes(ivbuf, mech_props->bsize);
128 if (!EVP_EncryptInit_ex(ctx, mech_props->cipher(), 0, keybuf, ivbuf)) {
176 safealign_memcpy(&obfbuf[p], ivbuf, mech_props->bsize, &p);
216 unsigned char *ivbuf;
259 /* copy out key, ivbuf and cryptotext */
267 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize);
268 if (ivbuf == NULL) {
272 safealign_memcpy(ivbuf, obfbuf+p, mech_props->bsize, &p);
287 if (!EVP_DecryptInit_ex(ctx, mech_props->cipher(), 0, keybuf, ivbuf)) {