internal static ICryptoStorage Deserialize(Stream source) { source.ThrowIfNull(nameof(source)); return((ICryptoStorage)GenericSerializer.Deserialize(source, EnumToConstuctorMappings, FormatExceptionMessage)); }
internal static void Serialize(Stream destination, ICryptoStorage obj) { destination.ThrowIfNull(nameof(destination)); obj.ThrowIfNull(nameof(obj)); GenericSerializer.Serialize(destination, obj, TypeToEnumMappings, FormatExceptionMessage); }
internal static IKeyDerivationFunction Deserialize(Stream source) { source.ThrowIfNull(nameof(source)); return((IKeyDerivationFunction)GenericSerializer.Deserialize(source, EnumToConstuctorMappings, FormatExceptionMessage)); }