コード例 #1
0
 public void Serialize(Stream destination)
 {
     KeyDerivationFunctionSerializer.Serialize(destination, storage.kdf);
     EncryptorSerializer.Serialize(destination, storage.encryptor);
 }
コード例 #2
0
 public void Deserialize(Stream source)
 {
     storage.kdf       = KeyDerivationFunctionSerializer.Deserialize(source);
     storage.encryptor = EncryptorSerializer.Deserialize(source);
 }