| 1 | /* |
|---|
| 2 | * $Id$ |
|---|
| 3 | * Copyright 2008-2009 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 | |
|---|
| 22 | using System; |
|---|
| 23 | using System.Collections.Generic; |
|---|
| 24 | using System.Text; |
|---|
| 25 | using Eraser.Manager; |
|---|
| 26 | using Eraser.Util; |
|---|
| 27 | |
|---|
| 28 | namespace 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 | } |
|---|