def _genMultiply(a, element, n, relicGenMultiplyFunc):
<EOL>a = coerceBigInt(a)<EOL>if not a:<EOL><INDENT>return NotImplemented<EOL><DEDENT>a %= n<EOL>result = element()<EOL>relicGenMultiplyFunc(byref(result), byref(a))<EOL>return result<EOL>
Multiplies scalar @a by the group generator using @relicGenMultiplyFunc
and returns the result of type @element.