chickadee » tweetnacl » scalarmult*

scalarmult* n pprocedure

Multiplies the field element p by the scalar n and returns a new field element.

Warning: This is a low-level primitive that should be used with care. Key agreement schemes can be implemented using this function, but the result does have inherent algebraic structure and must be passed through a hash function before it can be used safely as a cryptographic key.