internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory <byte> rebind, out RSAPublicKeyAsn decoded) { decoded = default; AsnValueReader sequenceReader = reader.ReadSequence(expectedTag); decoded.Modulus = sequenceReader.ReadInteger(); decoded.PublicExponent = sequenceReader.ReadInteger(); sequenceReader.ThrowIfNotEmpty(); }
internal static void Decode(ref AsnValueReader reader, ReadOnlyMemory <byte> rebind, out RSAPublicKeyAsn decoded) { Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); }