Searched refs:ivbuf (Results 1 - 3 of 3) sorted by relevance

/sssd/src/util/crypto/libcrypto/
H A Dcrypto_obfuscate.c77 unsigned char *ivbuf; local
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; local
259 /* copy out key, ivbuf and cryptotext */
267 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize);
268 if (ivbuf
[all...]
/sssd/src/util/crypto/nss/
H A Dnss_nite.c186 uint8_t *ivbuf = NULL; local
261 ivbuf = talloc_size(tmp_ctx, ivlen);
262 if (!ivbuf) {
266 memcpy(ivbuf, ciphertext, ivlen);
269 ret = nss_ctx_init(tmp_ctx, enc, key, keylen, ivbuf, ivlen, &cctx);
H A Dnss_obfuscate.c217 unsigned char *ivbuf; local
263 /* copy out key, ivbuf and cryptotext */
271 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize);
272 if (ivbuf == NULL) {
276 safealign_memcpy(ivbuf, obfbuf+p, mech_props->bsize, &p);
287 ivbuf, mech_props->bsize, &cctx);

Completed in 19 milliseconds