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

/sssd/src/util/crypto/nss/
H A Dnss_util.c90 struct crypto_mech_data *mech_props,
99 randkey = PK11_KeyGen(slot, mech_props->cipher,
100 NULL, mech_props->keylen, NULL);
149 struct crypto_mech_data *mech_props,
163 cctx->slot = PK11_GetBestSlot(mech_props->cipher, NULL);
183 mech_props, &cctx->key);
204 mech_props, &cctx->iv);
220 int nss_crypto_init(struct crypto_mech_data *mech_props, argument
242 cctx->keyobj = PK11_ImportSymKey(cctx->slot, mech_props->cipher,
253 cctx->sparam = PK11_ParamFromIV(mech_props
88 generate_random_key(TALLOC_CTX *mem_ctx, PK11SlotInfo *slot, struct crypto_mech_data *mech_props, SECItem **_key) argument
148 nss_ctx_init(TALLOC_CTX *mem_ctx, struct crypto_mech_data *mech_props, uint8_t *key, int keylen, uint8_t *iv, int ivlen, struct sss_nss_crypto_ctx **_cctx) argument
[all...]
H A Dnss_obfuscate.c67 struct crypto_mech_data *mech_props; local
94 mech_props = get_crypto_mech_data(meth);
95 if (mech_props == NULL) {
101 ret = nss_ctx_init(tmp_ctx, mech_props, NULL, 1, NULL, 1, &cctx);
107 ret = nss_crypto_init(mech_props, op_encrypt, cctx);
121 ct_maxsize = plen + (mech_props->bsize);
164 mech_props->keylen + mech_props->bsize +
176 safealign_memcpy(&obfbuf[p], cctx->key->data, mech_props->keylen, &p);
177 safealign_memcpy(&obfbuf[p], cctx->iv->data, mech_props
202 struct crypto_mech_data *mech_props; local
[all...]
/sssd/src/util/crypto/libcrypto/
H A Dcrypto_obfuscate.c74 struct crypto_mech_data *mech_props; local
99 mech_props = get_crypto_mech_data(meth);
100 if (mech_props == NULL) {
105 keybuf = talloc_array(tmp_ctx, unsigned char, mech_props->keylen);
111 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize);
117 RAND_bytes(keybuf, mech_props->keylen);
118 RAND_bytes(ivbuf, mech_props->bsize);
121 ct_maxsize = plen + (mech_props->bsize);
128 if (!EVP_EncryptInit_ex(ctx, mech_props->cipher(), 0, keybuf, ivbuf)) {
163 mech_props
202 struct crypto_mech_data *mech_props; local
[all...]

Completed in 10 milliseconds