Lines Matching defs:mech_props
67 struct crypto_mech_data *mech_props;
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->bsize, &p);
201 struct crypto_mech_data *mech_props;
244 mech_props = get_crypto_mech_data(meth);
245 if (mech_props == NULL) {
252 obfbuf + p + mech_props->keylen + mech_props->bsize + ctsize,
263 keybuf = talloc_array(tmp_ctx, unsigned char, mech_props->keylen);
268 safealign_memcpy(keybuf, obfbuf+p, mech_props->keylen, &p);
270 ivbuf = talloc_array(tmp_ctx, unsigned char, mech_props->bsize);
275 safealign_memcpy(ivbuf, obfbuf+p, mech_props->bsize, &p);
284 ret = nss_ctx_init(tmp_ctx, mech_props,
285 keybuf, mech_props->keylen,
286 ivbuf, mech_props->bsize, &cctx);
292 ret = nss_crypto_init(mech_props, op_decrypt, cctx);