1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Broadcom
6 #ifndef _BCMFS_SYM_REQ_H_
7 #define _BCMFS_SYM_REQ_H_
9 #include <rte_cryptodev.h>
11 #include "bcmfs_dev_msg.h"
12 #include "bcmfs_sym_defs.h"
14 /* Fixed SPU2 Metadata */
23 * This structure hold the supportive data required to process a
26 struct bcmfs_sym_request {
27 /* spu2 engine related data */
30 uint8_t cipher_key[BCMFS_MAX_KEY_SIZE];
32 uint8_t auth_key[BCMFS_MAX_KEY_SIZE];
34 uint8_t iv[BCMFS_MAX_IV_SIZE];
35 /* digest data output from crypto h/w */
36 uint8_t digest[BCMFS_MAX_DIGEST_SIZE];
37 /* 2-Bytes response from crypto h/w */
40 * Below are all iovas for above members
45 /* iova for cipher key */
47 /* iova for auth key */
53 /* iova for response */
56 /* bcmfs qp message for h/w queues to process */
57 struct bcmfs_qp_message msgs;
59 struct rte_crypto_op *op;
62 #endif /* _BCMFS_SYM_REQ_H_ */