source: trunk/eraser6/Eraser.DefaultPlugins/ErasureMethods/Schneier.cs @ 1359

Revision 1359, 1.7 KB checked in by lowjoel, 4 years ago (diff)

Set svn:eol-style to native

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1/*
2 * $Id$
3 * Copyright 2008 The Eraser Project
4 * Original Author: Joel Low <lowjoel@users.sourceforge.net>
5 * Modified By:
6 *
7 * This file is part of Eraser.
8 *
9 * Eraser is free software: you can redistribute it and/or modify it under the
10 * terms of the GNU General Public License as published by the Free Software
11 * Foundation, either version 3 of the License, or (at your option) any later
12 * version.
13 *
14 * Eraser is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 *
18 * A copy of the GNU General Public License can be found at
19 * <http://www.gnu.org/licenses/>.
20 */
21
22using System;
23using System.Collections.Generic;
24using System.Text;
25using Eraser.Manager;
26using Eraser.Util;
27
28namespace Eraser.DefaultPlugins
29{
30    sealed class Schneier : PassBasedErasureMethod
31    {
32        public override string Name
33        {
34            get { return S._("Schneier 7 pass"); }
35        }
36
37        public override Guid Guid
38        {
39            get { return new Guid("{B1BFAB4A-31D3-43a5-914C-E9892C78AFD8}"); }
40        }
41
42        protected override bool RandomizePasses
43        {
44            get { return false; }
45        }
46
47        protected override ErasureMethodPass[] PassesSet
48        {
49            get
50            {
51                return new ErasureMethodPass[]
52                {
53                    new ErasureMethodPass(WriteConstant, new byte[] { 1 }),
54                    new ErasureMethodPass(WriteConstant, new byte[] { 0 }),
55                    new ErasureMethodPass(WriteRandom, null),
56                    new ErasureMethodPass(WriteRandom, null),
57                    new ErasureMethodPass(WriteRandom, null),
58                    new ErasureMethodPass(WriteRandom, null),
59                    new ErasureMethodPass(WriteRandom, null)
60                };
61            }
62        }
63    }
64}
Note: See TracBrowser for help on using the repository browser.