sdp-1
net吧
全部回复
仅看楼主
level 3
/* 如下pc lint告警可忽略 */
/*lint -e506 -e533 -e534 -e573 -e574 -e602 -e603 -e632 -e633 -e634 -e638 -e639 -e641 -e960 */
#include "stdlib.h"
#include "wsecv2_securec.h"
#include "kmcv2_itf.h"
#include "kmcv2_pri.h"
#include "sdpv2_itf.h"
#include "sdpv2_pri.h"
#ifdef __cplusplus
extern "C"{
#endif /* __cplusplus */
#ifndef WSEC_COMPILE_SDP
#error Please defined 'WSEC_COMPILE_SDP' to compile sdpv2_func file.
#endif
/***** 密文结构版本 */
#define SDP_CIPHER_TEXT_VER2 (2)
#define SDP_HMAC_VER2 (2)
extern WSEC_ERR_T KMC_GetActiveMkWithHash(WSEC_UINT32 ulDomainId, WSEC_BYTE* pKeyBuf, WSEC_UINT32 *pKeyLen, WSEC_UINT32 *pKeyId ,WSEC_BYTE* pKeyHash);
extern WSEC_ERR_T KMC_InnerGetMkByIDHash( WSEC_UINT32 ulDomainId, WSEC_UINT32 ulKeyId,
WSEC_BYTE *aucHash, WSEC_BYTE* pbKeyPlainText, WSEC_UINT32* pKeyLen);
/*****************************************************************************
函 数 名 : SDP_GetAlgPropertyEx
功能描述 : 查询加密算法适配,考虑适配IPSI、OpenSSL
输入参数 :ulAglID 算法的 ID
输出参数 :
输入输出: peAlgType 算法类型
pulKeyLen 算法对应的key长度
pulIVLen 算法对应的IV 长度
pulMACLen Hmac 的长度
返 回 值 : 错误码
修改历史 :
1.日 期 : 2016年1月31日
作 者 : l00171031
修改内容 : 新生成函数
2016年08月05日 00点08分 1
1