def METHOD_NAME(
    cls, rdclass, rdtype, tok, origin=None, relativize=True, relativize_to=None
):
    algorithm = tok.get_uint8()
    flags = tok.get_uint8()
    iterations = tok.get_uint16()
    salt = tok.get_string()
    if salt == "-":
        salt = b""
    else:
        salt = binascii.unhexlify(salt.encode("ascii"))
    next = tok.get_string().encode("ascii").upper().translate(b32_hex_to_normal)
    if next.endswith(b"="):
        raise binascii.Error("Incorrect padding")
    if len(next) % 8 != 0:
        next += b"=" * (8 - len(next) % 8)
    next = base64.b32decode(next)
    bitmap = Bitmap.METHOD_NAME(tok)
    return cls(rdclass, rdtype, algorithm, flags, iterations, salt, next, bitmap)