Files
SuperVPN/output/Libraries/BouncyCastle.Crypto/Org/BouncyCastle/Asn1/X509/X509NameEntryConverter.cs
2025-10-09 09:57:24 +09:00

20 lines
495 B
C#

using Org.BouncyCastle.Utilities.Encoders;
namespace Org.BouncyCastle.Asn1.X509;
public abstract class X509NameEntryConverter
{
protected Asn1Object ConvertHexEncoded(string hexString, int offset)
{
string data = hexString.Substring(offset);
return Asn1Object.FromByteArray(Hex.Decode(data));
}
protected bool CanBePrintable(string str)
{
return DerPrintableString.IsPrintableString(str);
}
public abstract Asn1Object GetConvertedValue(DerObjectIdentifier oid, string value);
}