test(tenpayv3): 补充基于国密算法的客户端测试

This commit is contained in:
fudiwei
2022-11-28 12:10:04 +08:00
parent c75c68bde7
commit 23346ceab1
21 changed files with 102 additions and 80 deletions

View File

@@ -109,7 +109,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
public void BlockUpdate(byte[] input, int inOff, int length)
{
//更新当前消息摘要
while ((XBufOff != 0) && (length > 0))
{
Update(input[inOff]);
@@ -117,7 +116,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
length--;
}
//处理完整的消息摘要
while (length > XBuf.Length)
{
ProcessWord(input, inOff);
@@ -127,7 +125,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
ByteCount += XBuf.Length;
}
//填充剩余的消息摘要
while (length > 0)
{
Update(input[inOff]);
@@ -141,7 +138,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayBusiness.Utilities
{
long bitLength = (ByteCount << 3);
//添加字节
Update(unchecked((byte)128));
while (XBufOff != 0) Update(unchecked((byte)0));