source: trunk/eraser6/Eraser.DefaultPlugins/ErasureMethods/GOSTP50739.cs @ 1802

Revision 1802, 1.6 KB checked in by lowjoel, 5 years ago (diff)

Merged the CodeReview? Branch back to trunk. (Finally!) Closes #275: Code Review.

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