Exemplo n.º 1
0
 public static void Write(Stream outputStream, ProtectedKey key)
 {
     IKeyWriter writer = new KeyReaderWriter();
     writer.Write(outputStream, key);
 }
Exemplo n.º 2
0
 public static ProtectedKey Read(Stream inputStream, DataProtectionScope dpapiProtectionScope)
 {
     IKeyReader reader = new KeyReaderWriter();
     return reader.Read(inputStream, dpapiProtectionScope);
 }
Exemplo n.º 3
0
 public static ProtectedKey RestoreKey(Stream inputStream, string passphrase, DataProtectionScope protectionScope)
 {
     IKeyReader reader = new KeyReaderWriter();
     return reader.Restore(inputStream, passphrase, protectionScope);
 }
Exemplo n.º 4
0
 public static void ArchiveKey(Stream outputStream, ProtectedKey keyToArchive, string passphrase)
 {
     IKeyWriter writer = new KeyReaderWriter();
     writer.Archive(outputStream, keyToArchive, passphrase);
 }
Exemplo n.º 5
0
        public static void Write(Stream outputStream, ProtectedKey key)
        {
            IKeyWriter writer = new KeyReaderWriter();

            writer.Write(outputStream, key);
        }
Exemplo n.º 6
0
        public static ProtectedKey RestoreKey(Stream inputStream, string passphrase, DataProtectionScope protectionScope)
        {
            IKeyReader reader = new KeyReaderWriter();

            return(reader.Restore(inputStream, passphrase, protectionScope));
        }
Exemplo n.º 7
0
        public static ProtectedKey Read(Stream inputStream, DataProtectionScope dpapiProtectionScope)
        {
            IKeyReader reader = new KeyReaderWriter();

            return(reader.Read(inputStream, dpapiProtectionScope));
        }
Exemplo n.º 8
0
        public static void ArchiveKey(Stream outputStream, ProtectedKey keyToArchive, string passphrase)
        {
            IKeyWriter writer = new KeyReaderWriter();

            writer.Archive(outputStream, keyToArchive, passphrase);
        }