• check if the string is ASN.1 DER hexadecimal string

    Parameters

    • h: string

      string

    Returns boolean

    return true if the string is a ASN.1 DER hexadecimal string

    Example

    isDER("020201ab") -> true
    isDER("zzz") -> false // not hexadecimal
    isDER("020201") -> false // too short
    isDER("020201abcd") -> false // too long