Lines Matching defs:keybuf
76 unsigned char *keybuf;
105 keybuf = talloc_array(tmp_ctx, unsigned char, mech_props->keylen);
106 if (keybuf == NULL) {
117 RAND_bytes(keybuf, mech_props->keylen);
128 if (!EVP_EncryptInit_ex(ctx, mech_props->cipher(), 0, keybuf, ivbuf)) {
175 safealign_memcpy(&obfbuf[p], keybuf, mech_props->keylen, &p);
215 unsigned char *keybuf;
260 keybuf = talloc_array(tmp_ctx, unsigned char, mech_props->keylen);
261 if (keybuf == NULL) {
265 safealign_memcpy(keybuf, obfbuf+p, mech_props->keylen, &p);
287 if (!EVP_DecryptInit_ex(ctx, mech_props->cipher(), 0, keybuf, ivbuf)) {