Changeset 2458
- Timestamp:
- 3/13/2012 1:10:54 AM (15 months ago)
- Location:
- branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins
- Files:
-
- 7 edited
-
EntropySources/KernelEntropySource.cs (modified) (6 diffs)
-
ErasureMethods/FirstLast16KB.cs (modified) (1 diff)
-
ErasureTargets/FileErasureTargetConfigurer.cs (modified) (4 diffs)
-
FileSystems/Fat.cs (modified) (4 diffs)
-
FileSystems/Ntfs.cs (modified) (2 diffs)
-
FileSystems/Windows.cs (modified) (1 diff)
-
RNGCrypto.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/EntropySources/KernelEntropySource.cs
r2456 r2458 25 25 public class KernelEntropySource : IEntropySource 26 26 { 27 public overridebyte[] GetPrimer()27 public byte[] GetPrimer() 28 28 { 29 29 List<byte> result = new List<byte>(); … … 38 38 } 39 39 40 public overrideGuid Guid40 public Guid Guid 41 41 { 42 42 get … … 46 46 } 47 47 48 public overridestring Name48 public string Name 49 49 { 50 50 get … … 54 54 } 55 55 56 public overridebyte[] GetEntropy()56 public byte[] GetEntropy() 57 57 { 58 58 List<byte> result = new List<byte>(); … … 66 66 /// Retrieves entropy from quick sources. 67 67 /// </summary> 68 public overridebyte[] GetFastEntropy()68 public byte[] GetFastEntropy() 69 69 { 70 70 List<byte> result = new List<byte>(); … … 146 146 /// the FastAddEntropy function. 147 147 /// </summary> 148 public overridebyte[] GetSlowEntropy()148 public byte[] GetSlowEntropy() 149 149 { 150 150 List<byte> result = new List<byte>(); -
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureMethods/FirstLast16KB.cs
r2456 r2458 36 36 { 37 37 [Guid("0C2E07BF-0207-49a3-ADE8-46F9E1499C01")] 38 sealed class FirstLast16KB : IErasureMethod38 sealed class FirstLast16KB : ErasureMethodBase 39 39 { 40 40 public FirstLast16KB() -
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/ErasureTargets/FileErasureTargetConfigurer.cs
r2368 r2458 38 38 namespace Eraser.DefaultPlugins 39 39 { 40 public partial class FileErasureTargetConfigurer : UserControl, IErasureTargetConfigurer 40 public partial class FileErasureTargetConfigurer : UserControl, 41 IErasureTargetConfigurer, IDragAndDropConfigurer<IErasureTarget> 41 42 { 42 43 public FileErasureTargetConfigurer() … … 48 49 #region IConfigurer<ErasureTarget> Members 49 50 50 public void LoadFrom( ErasureTarget target)51 public void LoadFrom(IErasureTarget target) 51 52 { 52 53 FileErasureTarget file = target as FileErasureTarget; … … 58 59 } 59 60 60 public bool SaveTo( ErasureTarget target)61 public bool SaveTo(IErasureTarget target) 61 62 { 62 63 FileErasureTarget file = target as FileErasureTarget; … … 114 115 #endregion 115 116 117 #region IDragAndDropConfigurer<IErasureTarget> Members 118 119 public ICollection<IErasureTarget> ProcessArgument(DragEventArgs e) 120 { 121 List<string> files = e.Data.GetDataPresent(DataFormats.FileDrop) ? 122 new List<string>((string[])e.Data.GetData(DataFormats.FileDrop, false)) : 123 new List<string>(); 124 125 List<IErasureTarget> result = new List<IErasureTarget>(); 126 foreach (string file in files) 127 { 128 if (Directory.Exists(file)) 129 { 130 FolderErasureTarget target = new FolderErasureTarget(); 131 target.Path = file; 132 result.Add(target); 133 } 134 } 135 136 return result; 137 } 138 139 #endregion 140 116 141 private void fileBrowse_Click(object sender, EventArgs e) 117 142 { -
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/FileSystems/Fat.cs
r2456 r2458 36 36 /// Provides functions to handle erasures specific to FAT volumes. 37 37 /// </summary> 38 publicabstract class FatFileSystem : WindowsFileSystem38 abstract class FatFileSystem : WindowsFileSystem 39 39 { 40 40 public override void EraseOldFileSystemResidentFiles(VolumeInfo volume, … … 136 136 137 137 [Guid("36C78D78-7EE4-4304-8068-10755651AF2D")] 138 publicclass Fat12FileSystem : FatFileSystem138 class Fat12FileSystem : FatFileSystem 139 139 { 140 140 public override Guid Guid … … 155 155 156 156 [Guid("8C9DF746-1CD6-435d-8D04-3FE40A0A1C83")] 157 publicclass Fat16FileSystem : FatFileSystem157 class Fat16FileSystem : FatFileSystem 158 158 { 159 159 public override Guid Guid … … 174 174 175 175 [Guid("1FCD66DC-179D-4402-8FF8-D19F74A4C398")] 176 publicclass Fat32FileSystem : FatFileSystem176 class Fat32FileSystem : FatFileSystem 177 177 { 178 178 public override Guid Guid -
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/FileSystems/Ntfs.cs
r2456 r2458 37 37 /// </summary> 38 38 [Guid("34399F62-0AD4-411c-8C71-5E1E6213545C")] 39 publicclass NtfsFileSystem : WindowsFileSystem39 class NtfsFileSystem : WindowsFileSystem 40 40 { 41 41 public override Guid Guid … … 103 103 { 104 104 //Create a directory to hold all the temporary files 105 DirectoryInfo tempDir = new DirectoryInfo( IFileSystem.GenerateRandomFileName(105 DirectoryInfo tempDir = new DirectoryInfo(GenerateRandomFileName( 106 106 info.MountPoints[0], 32)); 107 107 tempDir.Create(); -
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/FileSystems/Windows.cs
r2456 r2458 38 38 /// Base class for all Windows filesystems. 39 39 /// </summary> 40 public abstract class WindowsFileSystem : IFileSystem40 abstract class WindowsFileSystem : FileSystemBase 41 41 { 42 42 public override void ResetFileTimes(FileSystemInfo info) -
branches/eraser6/pluginsRewrite/Eraser.DefaultPlugins/RNGCrypto.cs
r2456 r2458 34 34 { 35 35 [Guid("6BF35B8E-F37F-476e-B6B2-9994A92C3B0C")] 36 public class RngCrypto : IPrng36 public class RngCrypto : PrngBase 37 37 { 38 public overridestring Name38 public string Name 39 39 { 40 40 get { return S._("RNGCryptoServiceProvider"); } 41 41 } 42 42 43 public overrideGuid Guid43 public Guid Guid 44 44 { 45 45 get { return GetType().GUID; } 46 46 } 47 47 48 public overridevoid NextBytes(byte[] buffer)48 public void NextBytes(byte[] buffer) 49 49 { 50 50 rand.GetBytes(buffer); 51 51 } 52 52 53 protected overridevoid Reseed(byte[] seed)53 protected void Reseed(byte[] seed) 54 54 { 55 55 //No-op. RNGCryptoServiceProviders can't be reseeded.
Note: See TracChangeset
for help on using the changeset viewer.
