crypto-openssl: refactor openssl API usage
[vpp.git] / src / plugins / crypto_openssl / crypto_openssl.h
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright (c) 2023 ARM Ltd and/or its affiliates.
3  */
4
5 #ifndef __crypto_openssl_h__
6 #define __crypto_openssl_h__
7
8 typedef void *(crypto_openssl_ctx_fn_t) (vnet_crypto_key_t *key,
9                                          vnet_crypto_key_op_t kop,
10                                          vnet_crypto_key_index_t idx);
11
12 typedef struct
13 {
14   u32 crypto_engine_index;
15   crypto_openssl_ctx_fn_t *ctx_fn[VNET_CRYPTO_N_ALGS];
16 } crypto_openssl_main_t;
17
18 extern crypto_openssl_main_t crypto_openssl_main;
19
20 #endif /* __crypto_openssl_h__ */