Searched refs:op (Results 1 - 25 of 57) sorted by relevance

123

/vpp/src/plugins/crypto_openssl/
H A Dmain.c74 vnet_crypto_op_t *op = ops[i]; local
75 vnet_crypto_key_t *key = vnet_crypto_get_key (op->key_index);
79 if (op->op == VNET_CRYPTO_OP_3DES_CBC_ENC
80 || op->op == VNET_CRYPTO_OP_DES_CBC_ENC)
85 if (op->flags & VNET_CRYPTO_OP_FLAG_INIT_IV)
86 RAND_bytes (op->iv, iv_len);
88 EVP_EncryptInit_ex (ctx, cipher, NULL, key->data, op->iv);
90 if (op
142 vnet_crypto_op_t *op = ops[i]; local
198 vnet_crypto_op_t *op = ops[i]; local
240 vnet_crypto_op_t *op = ops[i]; local
286 vnet_crypto_op_t *op = ops[i]; local
[all...]
/vpp/src/plugins/crypto_ipsecmb/
H A Dipsecmb.c92 vnet_crypto_op_t *op = job->user_data; local
93 u32 len = op->digest_len ? op->digest_len : digest_size;
97 op->status = VNET_CRYPTO_OP_STATUS_FAIL_BAD_HMAC;
102 if (op->flags & VNET_CRYPTO_OP_FLAG_HMAC_CHECK)
104 if ((memcmp (op->digest, job->auth_tag_output, len)))
107 op->status = VNET_CRYPTO_OP_STATUS_FAIL_BAD_HMAC;
112 clib_memcpy_fast (op->digest, job->auth_tag_output, digest_size);
114 clib_memcpy_fast (op->digest, job->auth_tag_output, len);
116 op
136 vnet_crypto_op_t *op = ops[i]; local
181 vnet_crypto_op_t *op = job->user_data; local
206 vnet_crypto_op_t *op = ops[i]; local
[all...]
/vpp/src/plugins/unittest/
H A Dcrypto_test.c42 vnet_crypto_op_t *op; local
44 vec_foreach (op, ops)
47 r = rv[op->user_data];
52 switch (vnet_crypto_get_op_type (op->op))
84 if (op->status != VNET_CRYPTO_OP_STATUS_COMPLETED)
86 format_vnet_crypto_op_status, op->status);
88 if (op->flags & VNET_CRYPTO_OP_FLAG_CHAINED_BUFFERS)
92 chp = vec_elt_at_index (chunks, op->chunk_index);
93 for (i = 0; i < op
193 vnet_crypto_op_t op[1]; local
269 vnet_crypto_op_t *ops = 0, *op; local
436 vnet_crypto_op_t *ops = 0, *op, *chained_ops = 0; local
[all...]
/vpp/src/plugins/tlspicotls/
H A Dpico_vpp_crypto.c31 vnet_crypto_op_t op; member in struct:cipher_context_t
38 vnet_crypto_op_t op; member in struct:vpp_aead_context_t
66 vnet_crypto_op_init (&ctx->op, id);
67 ctx->op.iv = (u8 *) iv;
68 ctx->op.key_index = ctx->key_index;
84 ctx->op.src = (u8 *) input;
85 ctx->op.dst = output;
86 ctx->op.len = _len;
88 vnet_crypto_process_ops (vm, &ctx->op, 1);
135 ctx->op
[all...]
/vpp/src/plugins/nat/extras/
H A Dnat_ses_open.py38 vm.var(name="ip_src", min_value=ip_src['start'], max_value=ip_src['end'], size=4, op="random")
39 vm.var(name="ip_dst", min_value=ip_dst['start'], max_value=ip_dst['end'], size=4, op="random")
40 vm.var(name="src_port", min_value=src_port['start'], max_value=src_port['end'], size=2, op="random")
41 vm.var(name="dst_port", min_value=dst_port['start'], max_value=dst_port['end'], size=2, op="random")
/vpp/src/vnet/ipsec/
H A Dah_decrypt.c113 vnet_crypto_op_t *op = ops; local
118 n_fail = n_ops - vnet_crypto_process_ops (vm, op, n_ops);
122 ASSERT (op - ops < n_ops);
124 if (op->status != VNET_CRYPTO_OP_STATUS_COMPLETED)
126 u32 bi = op->user_data;
131 op++;
246 vnet_crypto_op_t *op; local
247 vec_add2_aligned (ptd->integ_ops, op, 1, CLIB_CACHE_LINE_BYTES);
248 vnet_crypto_op_init (op, sa0->integ_op_id);
250 op
[all...]
H A Dah_encrypt.c88 vnet_crypto_op_t *op = ops; local
93 n_fail = n_ops - vnet_crypto_process_ops (vm, op, n_ops);
97 ASSERT (op - ops < n_ops);
99 if (op->status != VNET_CRYPTO_OP_STATUS_COMPLETED)
101 u32 bi = op->user_data;
106 op++;
326 vnet_crypto_op_t *op; local
327 vec_add2_aligned (ptd->integ_ops, op, 1, CLIB_CACHE_LINE_BYTES);
328 vnet_crypto_op_init (op, sa0->integ_op_id);
329 op
[all...]
H A Desp_encrypt.c244 vnet_crypto_op_t *op = ops; local
249 n_fail = n_ops - vnet_crypto_process_chained_ops (vm, op, chunks, n_ops);
253 ASSERT (op - ops < n_ops);
255 if (op->status != VNET_CRYPTO_OP_STATUS_COMPLETED)
257 u32 bi = op->user_data;
262 op++;
272 vnet_crypto_op_t *op = ops; local
277 n_fail = n_ops - vnet_crypto_process_ops (vm, op, n_ops);
281 ASSERT (op - ops < n_ops);
283 if (op
396 vnet_crypto_op_t *op; local
441 vnet_crypto_op_t *op; local
[all...]
H A Desp_decrypt.c121 vnet_crypto_op_t *op = ops; local
127 n_fail = n_ops - vnet_crypto_process_ops (vm, op, n_ops);
131 ASSERT (op - ops < n_ops);
132 if (op->status != VNET_CRYPTO_OP_STATUS_COMPLETED)
134 u32 err, bi = op->user_data;
135 if (op->status == VNET_CRYPTO_OP_STATUS_FAIL_BAD_HMAC)
143 op++;
153 vnet_crypto_op_t *op = ops; local
159 n_fail = n_ops - vnet_crypto_process_chained_ops (vm, op, chunks, n_ops);
163 ASSERT (op
473 esp_decrypt_prepare_sync_op(vlib_main_t * vm, vlib_node_runtime_t * node, ipsec_per_thread_data_t * ptd, vnet_crypto_op_t *** crypto_ops, vnet_crypto_op_t *** integ_ops, vnet_crypto_op_t * op, ipsec_sa_t * sa0, u8 * payload, u16 len, u8 icv_sz, u8 iv_sz, esp_decrypt_packet_data_t * pd, esp_decrypt_packet_data2_t * pd2, vlib_buffer_t * b, u16 * next, u32 index) argument
1048 vnet_crypto_op_t _op, *op = &_op; local
[all...]
/vpp/src/vppinfra/
H A Dbacktrace.c71 mips_insn_opcode_t op; local
84 op = mips_insn_get_op (insn);
91 switch (op)
109 if (op == MIPS_OPCODE_sw)
H A Dasm_mips.h42 /* Encoding of opcode field (op). */
252 mips_insn_encode_i_type (int op, int rs, int rt, int immediate) argument
258 insn |= op << 26;
263 ASSERT (mips_insn_get_op (insn) == op);
269 mips_insn_encode_j_type (int op, u32 addr) argument
274 insn |= op << 26;
280 mips_insn_encode_r_type (int op, int rs, int rt, int rd, int sa, int funct) argument
288 insn |= op << 26;
295 ASSERT (mips_insn_get_op (insn) == op);
300 #define mips_insn_r(op,func
315 int op; local
[all...]
/vpp/src/vcl/
H A Dvcl_locked.h40 int vls_attr (vls_handle_t vlsh, uint32_t op, void *buffer,
43 int vls_epoll_ctl (vls_handle_t ep_vlsh, int op, vls_handle_t vlsh,
/vpp/src/vnet/crypto/
H A Dcrypto.h232 vnet_crypto_op_id_t op:16; member in struct:__anon29
326 vnet_crypto_async_op_id_t op:8; member in struct:__anon40
483 vnet_crypto_op_init (vnet_crypto_op_t * op, vnet_crypto_op_id_t type) argument
486 clib_memset (op, 0xfe, sizeof (*op));
487 op->op = type;
488 op->flags = 0;
489 op->key_index = ~0;
490 op
[all...]
H A Dnode.c48 vnet_crypto_async_op_id_t op; member in struct:__anon47
58 s = format (s, "%U: %U", format_vnet_crypto_async_op, t->op,
71 tr->op = op_id;
125 vnet_crypto_async_add_trace (vm, node, b, cf->op,
H A Dformat.c54 vnet_crypto_op_id_t op = va_arg (*args, int); // vnet_crypto_op_id_t); local
55 vnet_crypto_op_data_t *otd = cm->opt_data + op;
138 vnet_crypto_async_op_id_t op = va_arg (*args, vnet_crypto_async_op_id_t); local
139 vnet_crypto_async_op_data_t *otd = cm->async_opt_data + op;
/vpp/src/plugins/quic/
H A Dquic_crypto.c35 vnet_crypto_op_t op; member in struct:cipher_context_t
42 vnet_crypto_op_t op; member in struct:aead_crypto_context_t
356 vnet_crypto_op_init (&ctx->op, id);
357 ctx->op.iv = (u8 *) iv;
358 ctx->op.key_index = ctx->key_index;
374 ctx->op.src = (u8 *) input;
375 ctx->op.dst = output;
376 ctx->op.len = _len;
378 vnet_crypto_process_ops (vm, &ctx->op, 1);
531 vnet_crypto_op_init (&ctx->op, i
[all...]
/vpp/src/vlib/unix/
H A Dinput.c74 int op, add_del = 0; local
83 op = -1;
88 op = EPOLL_CTL_ADD;
93 op = EPOLL_CTL_MOD;
97 op = EPOLL_CTL_DEL;
118 if (epoll_ctl (em->epoll_fd, op, f->file_descriptor, &e) < 0)
/vpp/src/plugins/crypto_native/
H A Daes_cbc.c412 vnet_crypto_op_t *op = ops[0]; local
413 aes_cbc_key_data_t *kd = (aes_cbc_key_data_t *) cm->key_data[op->key_index];
420 vaes_cbc_dec (kd->decrypt_key, (u8x64u *) op->src, (u8x64u *) op->dst,
421 (u8x16u *) op->iv, op->len, rounds);
423 aes_cbc_dec (kd->decrypt_key, (u8x16u *) op->src, (u8x16u *) op->dst,
424 (u8x16u *) op->iv, op
[all...]
H A Daes_gcm.c1102 vnet_crypto_op_t *op = ops[0]; local
1108 kd = (aes_gcm_key_data_t *) cm->key_data[op->key_index];
1109 aes_gcm ((u8x16u *) op->src, (u8x16u *) op->dst, (u8x16u *) op->aad,
1110 (u8x16u *) op->iv, (u8x16u *) op->tag, op->len, op->aad_len,
1111 op
1128 vnet_crypto_op_t *op = ops[0]; local
[all...]
/vpp/test/
H A Dremote_test.py139 def _remote_exec(self, op, path=None, *args, **kwargs):
157 self._pipe[RemoteClass.PIPE_PARENT].send((op, path, args, kwargs))
329 (op, path, args,
334 if op == RemoteClass.GET:
336 elif op == RemoteClass.CALL:
338 elif op == RemoteClass.SETATTR and 'value' in kwargs:
340 elif op == RemoteClass.REPR:
342 elif op == RemoteClass.STR:
344 elif op == RemoteClass.QUIT:
H A Dvpp_l2.py207 def __init__(self, test, itf, op):
210 self.op = op
213 self.itf.set_vtr(self.op)
224 return (d.vtr_op == self.op)
228 return "L2-vtr-%s-%d" % (str(self.itf), self.op)
/vpp/src/plugins/dpdk/ipsec/
H A Desp_decrypt.c148 struct rte_crypto_op *op; local
164 op = ops[0];
166 ASSERT (op->status == RTE_CRYPTO_OP_STATUS_NOT_PROCESSED);
168 dpdk_op_priv_t *priv = crypto_op_get_priv (op);
169 /* store bi in op private */
174 sizeof (op[0]) + sizeof (op[0].sym[0]) + sizeof (priv[0]);
175 CLIB_PREFETCH (op, op_len, STORE);
265 res->ops[res->n_ops] = op;
350 op
[all...]
/vpp/extras/vom/vom/
H A Dl2_binding.hpp101 void set(const l2_vtr::option_t& op, uint16_t tag);
H A Dl2_xconnect.hpp84 void set(const l2_vtr::option_t& op, uint16_t tag);
/vpp/src/plugins/dpdk/cryptodev/
H A Dcryptodev.c95 struct rte_crypto_op op; member in struct:__anon1
167 aead_xform->op = (op_type == CRYPTODEV_OP_TYPE_ENCRYPT) ?
199 xform_cipher->cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT;
200 xform_auth->auth.op = RTE_CRYPTO_AUTH_OP_GENERATE;
206 xform_cipher->cipher.op = RTE_CRYPTO_CIPHER_OP_DECRYPT;
207 xform_auth->auth.op = RTE_CRYPTO_AUTH_OP_VERIFY;
644 sop->aead.aad.phys_addr = cop[0]->op.phys_addr + CRYPTODEV_AAD_OFFSET;
720 ss0 |= fe[0].status = cryptodev_status_conversion[cop[0]->op.status];
721 ss1 |= fe[1].status = cryptodev_status_conversion[cop[1]->op.status];
722 ss2 |= fe[2].status = cryptodev_status_conversion[cop[2]->op
800 cryptodev_assign_resource(cryptodev_engine_thread_t * cet, u32 cryptodev_inst_index, cryptodev_resource_assign_op_t op) argument
1223 struct rte_crypto_op *op = _obj; local
[all...]

Completed in 19 milliseconds

123