コード例 #1
0
 private byte[] doFinal()
 {
     byte[] B      = new byte[BLOCK_LENGTH];
     byte[] buffer = new byte[xBufOff];
     System.Array.Copy(xBuf, 0, buffer, 0, buffer.Length);
     byte[] tmp = SM3.padding(buffer, cntBlock);
     for (int i = 0; i < tmp.Length; i += BLOCK_LENGTH)
     {
         System.Array.Copy(tmp, i, B, 0, B.Length);
         doHash(B);
     }
     return(V);
 }
コード例 #2
0
 private void doHash(byte[] B)
 {
     byte[] tmp = SM3.CF(V, B);
     System.Array.Copy(tmp, 0, V, 0, V.Length);
     cntBlock++;
 }