Ejemplo n.º 1
0
 internal static ICryptoStorage Deserialize(Stream source)
 {
     source.ThrowIfNull(nameof(source));
     return((ICryptoStorage)GenericSerializer.Deserialize(source, EnumToConstuctorMappings, FormatExceptionMessage));
 }
Ejemplo n.º 2
0
 internal static void Serialize(Stream destination, ICryptoStorage obj)
 {
     destination.ThrowIfNull(nameof(destination));
     obj.ThrowIfNull(nameof(obj));
     GenericSerializer.Serialize(destination, obj, TypeToEnumMappings, FormatExceptionMessage);
 }
Ejemplo n.º 3
0
 internal static IKeyDerivationFunction Deserialize(Stream source)
 {
     source.ThrowIfNull(nameof(source));
     return((IKeyDerivationFunction)GenericSerializer.Deserialize(source, EnumToConstuctorMappings, FormatExceptionMessage));
 }