aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_openssl/crypto_openssl.h
blob: e16429fb5ddebdde00c8c9f8b026e5f64456afbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: Apache-2.0
 * Copyright (c) 2023 ARM Ltd and/or its affiliates.
 */

#ifndef __crypto_openssl_h__
#define __crypto_openssl_h__

typedef void *(crypto_openssl_ctx_fn_t) (vnet_crypto_key_t *key,
					 vnet_crypto_key_op_t kop,
					 vnet_crypto_key_index_t idx);

typedef struct
{
  u32 crypto_engine_index;
  crypto_openssl_ctx_fn_t *ctx_fn[VNET_CRYPTO_N_ALGS];
} crypto_openssl_main_t;

extern crypto_openssl_main_t crypto_openssl_main;

#endif /* __crypto_openssl_h__ */