Example #1
0
 internal static ICryptoStorage Deserialize(Stream source)
 {
     source.ThrowIfNull(nameof(source));
     return((ICryptoStorage)GenericSerializer.Deserialize(source, EnumToConstuctorMappings, FormatExceptionMessage));
 }
Example #2
0
 internal static IKeyDerivationFunction Deserialize(Stream source)
 {
     source.ThrowIfNull(nameof(source));
     return((IKeyDerivationFunction)GenericSerializer.Deserialize(source, EnumToConstuctorMappings, FormatExceptionMessage));
 }