aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_crypto_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp_crypto_internal.h')
-rw-r--r--platform/linux-generic/include/odp_crypto_internal.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/platform/linux-generic/include/odp_crypto_internal.h b/platform/linux-generic/include/odp_crypto_internal.h
deleted file mode 100644
index c3b70b231..000000000
--- a/platform/linux-generic/include/odp_crypto_internal.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Copyright (c) 2014, Linaro Limited
- * All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-#ifndef ODP_CRYPTO_INTERNAL_H_
-#define ODP_CRYPTO_INTERNAL_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <openssl/evp.h>
-
-#define MAX_IV_LEN 64
-#define OP_RESULT_MAGIC 0x91919191
-
-/** Forward declaration of session structure */
-typedef struct odp_crypto_generic_session odp_crypto_generic_session_t;
-
-/**
- * Algorithm handler function prototype
- */
-typedef
-odp_crypto_alg_err_t (*crypto_func_t)(odp_crypto_op_param_t *param,
- odp_crypto_generic_session_t *session);
-
-/**
- * Per crypto session data structure
- */
-struct odp_crypto_generic_session {
- struct odp_crypto_generic_session *next;
-
- /* Session creation parameters */
- odp_crypto_session_param_t p;
-
- odp_bool_t do_cipher_first;
-
- struct {
- /* Copy of session IV data */
- uint8_t iv_data[MAX_IV_LEN];
- uint8_t key_data[EVP_MAX_KEY_LENGTH];
-
- const EVP_CIPHER *evp_cipher;
- crypto_func_t func;
- } cipher;
-
- struct {
- uint8_t key[EVP_MAX_KEY_LENGTH];
- uint32_t key_length;
- uint32_t bytes;
- const EVP_MD *evp_md;
- crypto_func_t func;
- } auth;
-};
-
-/**
- * Per packet operation result
- */
-typedef struct odp_crypto_generic_op_result {
- uint32_t magic;
- odp_crypto_op_result_t result;
-} odp_crypto_generic_op_result_t;
-
-/**
- * Per session creation operation result
- */
-typedef struct odp_crypto_generic_session_result {
- odp_crypto_ses_create_err_t rc;
- odp_crypto_session_t session;
-} odp_crypto_generic_session_result_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif