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