Refactor to allow for different modular additions depending on the hash size for SHA