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

📄 tdesalgid.c

📁 voltage 公司提供的一个开发Ibe的工具包
💻 C
字号:
/* Copyright 2003-2005, Voltage Security, all rights reserved.
 */
#include "vibe.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "algobj.h"
#include "cipher.h"
#include "block.h"
#include "oidlist.h"
#include "algid.h"

int VtDerCoder3DESEDEwCBCPad (
   VtDerCoderInfo *coderInfo,
   Pointer object,
   unsigned int flag
   )
{
  VoltBlockCipherAlgIdData algIdData;
  unsigned char tdesEDECBCOid[Volt3DesEDECBCPadOidBytesLen] =
    { Volt3DesEDECBCPadOidBytes };

  /* Set the algIdData to what we're expecting the object to represent.
   */
  algIdData.oid = tdesEDECBCOid;
  algIdData.oidLen = Volt3DesEDECBCPadOidBytesLen;
  algIdData.algorithm = VT_ALG_ID_3DES_EDE_CBC_PAD;
  algIdData.subAlg1 = VOLT_SUB_ALG_3DES_EDE;
  algIdData.subAlg2 = VOLT_SUB_ALG_P5_PAD | VOLT_SUB_ALG_CBC;
  algIdData.algImpl = VtAlgorithmImpl3DESEDE;
  algIdData.KeyParam = VtKeyParamTripleDES;
  return (VoltDerCoderBlockCipher (flag, object, coderInfo, &algIdData));
}

⌨️ 快捷键说明

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