在c#中怎样调用地址传递的机构体?

sweig0721 sweig0721 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Private Const MAX_KEY_SIZE = 64
Private Const MAX_IV_SIZE = 16
Private Const MAXNR = 14

Private Const DIR_ENCRYPT = 0
Private Const DIR_DECRYPT = 1

Private Const MODE_ECB = 1
Private Const MODE_CBC = 2
Private Const MODE_CFB1 = 3


Private Type KeyInstance
direction As Byte
keyLen As Long
keyMaterial(MAX_KEY_SIZE + 1) As Byte
Nr As Long
rk(4 * (MAXNR + 1)) As Long
ek(4 * (MAXNR + 1)) As Long
End Type

Private Type CipherInstance
mode As Byte
iv(MAX_IV_SIZE) As Byte
End Type

Private Declare Function makeKeyPStdCall Lib "Rijndael.dll" (ByRef key As KeyInstance, ByVal dir As Byte, ByVal keyLen As Long, ByRef keyPhrase As Byte,

ByVal keyPhraseLen As Long) As Long



Dim kInst As KeyInstance
Dim cInst As CipherInstance

makeKeyPStdCall kInst, DIR_ENCRYPT, 128, bytSignature(0), 32

请问怎用在c# 中调用?
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
sweig0721
C# 111,128 成员 642,537 内容