The PDF contains pseudocode for RSA, AES, and DES. Open a Python or C++ environment and code these from scratch. You will never understand the S-box substitution until you debug it yourself.
The landscape of cybersecurity changes monthly. Is a textbook from the late 2010s still valid? Bernard Menezes Network Security And Cryptography.pdf