How to customize the OTAA

Hi

I have a task to improve the of lorawan protocol, so who I can modify files or an algorithm, for example, OTAA , authentication crypto etc, in security field . in Chirpstack server

Thanks