There's no 'legality' involved in duplicating device codes. "Imitation is the sincerest form of flattery.". The practice is widespread of using the same code numbers for interchangeable devices by differing manufacturers: batteries (AAA, AA, 2025, etc), thermionic valves/tubes (6A7, 12AG8, etc), ICs (555, Z80, 8085, etc), and so on and so forth.
Or, as I tell my kids: "Just because you're right doesn't mean you won't go bankrupt proving it in a court of law."