Applied Cryptography is probably the worst book on cryptography engineering in broad circulation. It is a scourge.
https://sockpuppet.org/blog/2013/07/22/applied-practical-cry...
It's best to think of Applied Cryptography as an almanac or a work of pop science. The worst thing you can do with it is implement directly from it.