For legitimate bootloader unlocking on recent Huawei devices, the only official path (where available) is through Huawei’s now-discontinued unlock service or approved third-party channels (e.g., HCU Client with paid credits, which uses a server-side generator, not a local “algorithm”).