linux/drivers/crypto/hisilicon/sec2/sec_crypto.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2019 HiSilicon Limited. */

#ifndef __HISI_SEC_V2_CRYPTO_H
#define __HISI_SEC_V2_CRYPTO_H

#define SEC_AIV_SIZE
#define SEC_IV_SIZE
#define SEC_MAX_KEY_SIZE
#define SEC_MAX_AKEY_SIZE
#define SEC_COMM_SCENE
#define SEC_MIN_BLOCK_SZ

enum sec_calg {};

enum sec_hash_alg {};

enum sec_mac_len {};

enum sec_cmode {};

enum sec_ckey_type {};

enum sec_bd_type {};

enum sec_auth {};

enum sec_cipher_dir {};

enum sec_addr_type {};

struct bd_status {};

enum {};

enum {};

struct sec_sqe_type2 {};

struct sec_sqe {};

struct bd3_auth_ivin {} __packed __aligned();

struct bd3_skip_data {};

struct bd3_stream_scene {} __packed __aligned();

struct bd3_no_scene {} __packed __aligned();

struct bd3_check_sum {};

struct bd3_tls_type_back {};

struct sec_sqe3 {} __packed __aligned();

int sec_register_to_crypto(struct hisi_qm *qm);
void sec_unregister_from_crypto(struct hisi_qm *qm);
#endif