FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
crypto.api
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 option version = "1.0.1";
17 
19 {
22 };
23 
25 {
29 };
30 
31  /** \brief crypto: use polling or interrupt dispatch
32  @param client_index - opaque cookie to identify the sender
33  @param context - sender context, to match reply w/ request
34  @param mode - dispatch mode
35 */
36 
37 autoreply define crypto_set_async_dispatch
38 {
41  vl_api_crypto_dispatch_mode_t mode;
42 };
43 
44  /** \brief crypto: set crypto handler
45  @param client_index - opaque cookie to identify the sender
46  @param context - sender context, to match reply w/ request
47  @param alg_name - Name of the algorithm to add
48  @param engine - Name of the engine to add
49  @param oct - Operation class type (simple, chained, both)
50  @param is_async - Asynchronous or not
51 */
52 
53 autoreply define crypto_set_handler
54 {
57  string alg_name[32];
58  string engine[16];
59  vl_api_crypto_op_class_type_t oct;
61 };
62 
63  /*
64  * Local Variables:
65  * eval: (c-set-style "gnu")
66  * End:
67  */
vl_api_crypto_set_async_dispatch_t::mode
vl_api_crypto_dispatch_mode_t mode
Definition: crypto.api:41
vl_api_crypto_set_handler_t::is_async
u8 is_async
Definition: crypto.api:60
vl_api_crypto_set_async_dispatch_t::client_index
u32 client_index
Definition: crypto.api:39
vl_api_crypto_set_async_dispatch_t::context
u32 context
Definition: crypto.api:40
vl_api_crypto_set_handler_t
crypto: set crypto handler
Definition: crypto.api:53
vl_api_crypto_set_handler_t::oct
vl_api_crypto_op_class_type_t oct
Definition: crypto.api:59
vl_api_crypto_set_async_dispatch_t
crypto: use polling or interrupt dispatch
Definition: crypto.api:37
CRYPTO_ASYNC_DISPATCH_POLLING
@ CRYPTO_ASYNC_DISPATCH_POLLING
Definition: crypto.api:20
CRYPTO_API_OP_CHAINED
@ CRYPTO_API_OP_CHAINED
Definition: crypto.api:27
vl_api_crypto_set_handler_t::engine
string engine[16]
Definition: crypto.api:58
CRYPTO_ASYNC_DISPATCH_INTERRUPT
@ CRYPTO_ASYNC_DISPATCH_INTERRUPT
Definition: crypto.api:21
crypto_op_class_type
crypto_op_class_type
Definition: crypto.api:24
vl_api_crypto_set_handler_t::context
u32 context
Definition: crypto.api:56
CRYPTO_API_OP_BOTH
@ CRYPTO_API_OP_BOTH
Definition: crypto.api:28
u32
unsigned int u32
Definition: types.h:88
crypto_dispatch_mode
crypto_dispatch_mode
Definition: crypto.api:18
CRYPTO_API_OP_SIMPLE
@ CRYPTO_API_OP_SIMPLE
Definition: crypto.api:26
vl_api_crypto_set_handler_t::alg_name
string alg_name[32]
Definition: crypto.api:57
u8
unsigned char u8
Definition: types.h:56
vl_api_crypto_set_handler_t::client_index
u32 client_index
Definition: crypto.api:55
version
option version
Definition: crypto.api:16