コード例 #1
0
ファイル: AgileDecryptor.cs プロジェクト: IMULMUL/npoi
            // TODO: calculate integrity hmac while Reading the stream
            // for a post-validation of the data

            protected override Cipher InitCipherForBlock(Cipher cipher, int block)
            {
                return(AgileDecryptor.InitCipherForBlock(cipher, block, false, builder, decryptor.GetSecretKey(), Cipher.DECRYPT_MODE));
            }
コード例 #2
0
ファイル: AgileEncryptor.cs プロジェクト: ziyangx/npoi
 protected override Cipher InitCipherForBlock(Cipher existing, int block, bool lastChunk)
 {
     return(AgileDecryptor.InitCipherForBlock(existing, block, lastChunk, builder, skey, Cipher.ENCRYPT_MODE));
 }