This requires an algorithm: students are taught to stack one number atop another and multiply each digit of the bottom number ...
This page lists "coding rules" for implementations of cryptographic operations, and more generally for operations involving secret or sensitive values. The rules on this page are general ...