Ejemplo n.º 1
0
            // 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));
            }
Ejemplo n.º 2
0
 protected override Cipher InitCipherForBlock(Cipher existing, int block, bool lastChunk)
 {
     return(AgileDecryptor.InitCipherForBlock(existing, block, lastChunk, builder, skey, Cipher.ENCRYPT_MODE));
 }