diff options
Diffstat (limited to 'src/plugins/crypto_openssl/crypto_openssl.h')
-rw-r--r-- | src/plugins/crypto_openssl/crypto_openssl.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/crypto_openssl/crypto_openssl.h b/src/plugins/crypto_openssl/crypto_openssl.h new file mode 100644 index 00000000000..e16429fb5dd --- /dev/null +++ b/src/plugins/crypto_openssl/crypto_openssl.h @@ -0,0 +1,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__ */ |