⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sec2_diag.h

📁 freescale ppc sec2加解密单元驱动
💻 H
字号:
/************************************************************************
* 版权所有 (C)2005, 深圳市中兴通讯股份有限公司。
*
* 文件名称: sec2_diag.h
* 文件标识: 见配置管理计划书
* 内容摘要: sec2诊断测试头文件
* 其它说明:
* 当前版本: V1.0
* 作    者: 陈晓
* 完成日期: 2007年03月27日
*
* 修改记录1:
*    修改日期:
*    版 本 号:
*    修 改 人:陈 晓
*    修改内容:创 建
* 修改记录2:…
************************************************************************
*
*/
#ifndef  _SEC2_DIAG_H_
#define  _SEC2_DIAG_H_

#include <stdio.h>
#include <memlib.h>
#include <cachelib.h>
#include "mux_ex.h"
#include "ros_ex.h"
#include "zxr10ver.h"
#include "install.h"
#include "protocol/security/common/include/algo_msg.h"
#include "protocol/security/crypto/common/include/crypto_algoid.h"
#include "sec2.h"
#include "ipsec_request.h"
#include "sec2_algo.h"


#include "diagnose/include/diag_prj_debug.h"
#include "diagnose/include/diag_prj.h"
#include "diagnose/include/diag_prj_lib.h"
#include "sec2Driver.h"

#include "oam/include/publichead.h"
typedef struct 
{
    unsigned long  sec2_des_enc_succ_cnt; 
    unsigned long  sec2_des_dec_succ_cnt;
    unsigned long  sec2_3des_enc_succ_cnt;
    unsigned long  sec2_3des_dec_succ_cnt;
    unsigned long  sec2_aes_enc_succ_cnt;
    unsigned long  sec2_aes_dec_succ_cnt;
    unsigned long  sec2_hmac_md5_succ_cnt;
    unsigned long  sec2_hmac_sha_succ_cnt;
}diag_sec2_internal;

typedef enum
{
    DIAG_SEC2_HMAC_MD5 = 0,
    DIAG_SEC2_HMAC_SHA
}DIAG_SEC2_HMAC;

#define DIAG_SEC2_INTERNAL   0x85

void Sec2_coreId_Identity(char *buffer);
int sec2_diag_des(algo_msg_crypt_t *cbc);
int sec2_test_3des_encrypt(algo_msg_crypt_t *cbc);
int sec2_diag_aes_ctrl(void);
int sec2_diag_aes(algo_msg_crypt_t *cbc);
int sec2_test_aes_encrypt(algo_msg_crypt_t *cbc);
int sec2_diag_3des_ctrl(void);
int sec2_diag_3des(algo_msg_crypt_t *cbc);
void drv_Sec2_diag_clear_stat(void);
void sec2_test_3des_callback(DRV_SEC2_CONTEXT *ctx);
void sec2_test_aes_callback(DRV_SEC2_CONTEXT *ctx);
void sec2_test_des_callback(DRV_SEC2_CONTEXT *ctx);
int sec2_test_des_encrypt(algo_msg_crypt_t *cbc);
int sec2_diag_des_ctrl(void);
int drv_Sec2RegisterDiag(void);
int diag_prjSec2Parse(MSG_COMM_OAM   *pMsg, diagPrjParam *pSec2Param);
int drv_Sec2Diag(diagPrjParam *pdiagPrjParam, char **ret_buffer);
int drv_Sec2ShowCardInfo(char *buffer);
int drv_Sec2ShowBuffer(char *buffer);
void drv_Sec2_Fwd_Queue_sprintf(char *buffer);
void drv_Sec2_Handle_Queue_sprintf(char *buffer);
void drv_Sec2_show_Global_stat(char *buffer);
void drv_Sec2_show_channel_stat(char *buffer);
int drv_Sec2ShowCPLD(char *buffer);
int drv_Sec2ShowFPGA(char *buffer);
int sec2_test_des_decrypt(algo_msg_crypt_t *cbc);
int sec2_test_3des_decrypt(algo_msg_crypt_t *cbc);
int sec2_test_aes_decrypt(algo_msg_crypt_t *cbc);
unsigned char ipsec_onlytest[128] = {0};
extern void drv_sec2_free_context(DRV_SEC2_CONTEXT *ctx);
extern unsigned char drv_ipsec_iv_out[];
int drv_Sec2Diaginternal(char *buffer);
extern INT32 crypto_hmac_md5(algo_msg_hmac_t *hmac);
extern INT32 crypto_hmac_sha1(algo_msg_hmac_t *hmac);
int sec2_diag_hmac(DIAG_SEC2_HMAC choose,algo_msg_hmac_t *hmac);
int sec2_diag_hmac_ctrl(DIAG_SEC2_HMAC choose);
int sec2_test_hmac(DIAG_SEC2_HMAC choose,algo_msg_hmac_t *hmac);
int sec2_diag_algo(void);
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -