Skip to content

Commit

Permalink
Remove unused cipher structures
Browse files Browse the repository at this point in the history
Change-Id: Ia50f62caa8eddc0867c585ae1456f23fc00fc417
Signed-off-by: Steve Linsell <stevenx.linsell@intel.com>
  • Loading branch information
stevelinsell committed Jul 25, 2017
1 parent 35a430b commit 29e025f
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions qat_ciphers.h
Expand Up @@ -159,49 +159,6 @@ typedef struct qat_chained_ctx_t {
unsigned long total_op;
} qat_chained_ctx;

/* qat_buffer structure for partial hash */
typedef struct qat_buffer_t {
struct qat_buffer_t *next; /* next buffer in the list */
void *data; /* point to data buffer */
int len; /* length of data */
} qat_buffer;

/* Qat ctx structure declaration */
typedef struct qat_ctx_t {
int paramNID; /* algorithm nid */
CpaCySymSessionCtx ctx; /* session context */
unsigned char hashResult[SHA512_DIGEST_LENGTH];
/* hash digest result */
int enc; /* encryption flag */
int init; /* has been initialised */
int copiedCtx; /* whether this is a copied context for
* initialisation purposes */
CpaInstanceHandle instance_handle;
Cpa32U nodeId;
/*
* the memory for the private meta data must be allocated as contiguous
* memory. The cpaCyBufferListGetMetaSize() will return the size (in
* bytes) for memory allocation routine to allocate the private meta data
* memory
*/
void *srcPrivateMetaData; /* meta data pointer */
void *dstPrivateMetaData; /* meta data pointer */
/*
* For partial operations, we maintain a linked list of buffers to be
* processed in the final function.
*/
qat_buffer *first; /* first buffer pointer for partial op */
qat_buffer *last; /* last buffer pointe for partial op */
int buff_count; /* buffer count */
int buff_total_bytes; /* total number of bytes in buffer */
int failed_submission; /* flag as a failed submission to aid cleanup */
/* Request tracking stats */
Cpa64U noRequests;
Cpa64U noResponses;
CpaCySymSessionSetupData *session_data;
Cpa32U meta_size;
} qat_ctx;

void qat_create_ciphers(void);
void qat_free_ciphers(void);
int qat_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids,
Expand Down

0 comments on commit 29e025f

Please sign in to comment.