mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
test(tenpayv3): 补充基于国密算法的客户端测试
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user