Searched defs:obfbuf (Results 1 - 3 of 3) sorted by relevance

/sssd/src/tests/
H A Dcrypto-tests.c127 const unsigned char obfbuf[] = "test"; local
134 obfpwd = sss_base64_encode(test_ctx, obfbuf, strlen((const char*)obfbuf));
144 unsigned char *obfbuf = NULL; local
152 obfbuf = sss_base64_decode(test_ctx, b64encoded, &obflen);
153 fail_if(!obfbuf);
155 fail_if(memcmp(obfbuf, expected, obflen) != 0);
/sssd/src/util/crypto/libcrypto/
H A Dcrypto_obfuscate.c84 unsigned char *obfbuf; local
165 obfbuf = talloc_array(tmp_ctx, unsigned char, obufsize);
166 if (!obfbuf) {
172 SAFEALIGN_SET_UINT16(&obfbuf[p], meth, &p);
174 SAFEALIGN_SET_UINT16(&obfbuf[p], result_len, &p);
175 safealign_memcpy(&obfbuf[p], keybuf, mech_props->keylen, &p);
176 safealign_memcpy(&obfbuf[p], ivbuf, mech_props->bsize, &p);
177 safealign_memcpy(&obfbuf[p], cryptotext, result_len, &p);
178 safealign_memcpy(&obfbuf[p], OBF_BUFFER_SENTINEL,
182 *obfpwd = sss_base64_encode(mem_ctx, obfbuf, obufsiz
206 unsigned char *obfbuf = NULL; local
[all...]
/sssd/src/util/crypto/nss/
H A Dnss_obfuscate.c78 unsigned char *obfbuf; local
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, obufsiz
207 unsigned char *obfbuf = NULL; local
[all...]

Completed in 29 milliseconds