Asn1DerParser.NET
Asn1DerParser.NET copied to clipboard
Abstract Syntax Notation One (ASN.1) binary parser to support Distinguished Encoding Rules (DER) in .NET
https://github.com/PKISolutions/Asn1DerParser.NET/blob/master/Asn1Parser/Utils/DateTimeUtils.cs line 21-22: I think your + - is set oppositely.
- Updated all methods and constructors that accepted `Byte[]` to accept `ReadOnlySpan` or `ReadOnlyMemory` (depending on need) - Removed long ago obsoleted APIs - Obsoleted most properties that returned `Byte[]`...
`AsnFormatter.BinaryToString` with `EncodingType.HexRaw` argument in `encoding` parameter never append EOL characters. Not sure if it is intentional or not, but not consistent. Based on usages, it looks like a bug.
This happens because of missing boundary check in `AsnFormatter.TestInputString`: https://github.com/PKISolutions/Asn1DerParser.NET/blob/98f2aac12b29f95e55dce76ff8b0006d5fa49893/Asn1Parser/StringToBinaryFormatter.cs#L27-L28