Beispiel #1
0
 private static T DecryptStream <T>(
     BinaryReader reader,
     Func <BinaryReader, T> read)
 {
     using (BinaryReader decryptedReader =
                StreamEncryption.DecryptStream(SAVE_KEY, reader))
     {
         return(read(decryptedReader));
     }
 }
Beispiel #2
0
 private static void DecryptStream(
     BinaryReader reader,
     Action <BinaryReader> read)
 {
     using (BinaryReader decryptedReader =
                StreamEncryption.DecryptStream(SAVE_KEY, reader))
     {
         read(decryptedReader);
     }
 }