Merge remote-tracking branch 'origin/dev-1.0' into dev-1.0
This commit is contained in:
commit
df7888ab07
@ -103,9 +103,12 @@ public class SydApiSM4 {
|
|||||||
}
|
}
|
||||||
int length=(pcData.length/16)-1;
|
int length=(pcData.length/16)-1;
|
||||||
byte[] bytes = new byte[16];
|
byte[] bytes = new byte[16];
|
||||||
|
dataResult = bytes;
|
||||||
|
byte[] bytes1 = new byte[pcData.length-16];
|
||||||
System.arraycopy(pcData,length*16,bytes,0,16);
|
System.arraycopy(pcData,length*16,bytes,0,16);
|
||||||
System.out.println(bytes);
|
System.arraycopy(pcData,1,bytes1,0,pcData.length-16);
|
||||||
return null;
|
iPkgNum = 2;
|
||||||
|
return api.SYD_SM4_LongData(iKeyIndex,bytes1,iPkgNum,iFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -130,7 +133,7 @@ public class SydApiSM4 {
|
|||||||
sourceWrap = null;
|
sourceWrap = null;
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
byte[] bytes = api.SYD_SM4_LongData(iKeyIndex,sourceWrap.array(), iPkgNum, iFlag);
|
byte[] bytes = api.SYD_SM4_LongData(iKeyIndex,dataResult, iPkgNum, iFlag);
|
||||||
sourceWrap = null;
|
sourceWrap = null;
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user