public void Serialize(Stream destination) { KeyDerivationFunctionSerializer.Serialize(destination, storage.kdf); EncryptorSerializer.Serialize(destination, storage.encryptor); }
public void Deserialize(Stream source) { storage.kdf = KeyDerivationFunctionSerializer.Deserialize(source); storage.encryptor = EncryptorSerializer.Deserialize(source); }