Changeset 35065 in project


Ignore:
Timestamp:
01/24/18 22:41:31 (4 months ago)
Author:
chust
Message:

[tweetnacl] Documented scalarmult*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/tweetnacl

    r32833 r35065  
    6969Decrypt and verify a message {{sm}} from the public key {{pk}} to the general public. The signature message combination {{sm}} and the returned plaintext are represented as strings. If the authenticity of the message cannot be verified the procedure returns {{#f}} instead of a string.
    7070
     71<constant>scalarmult-primitive</constant>
     72
     73A string that briefly describes the scalar multiplication algorithm.
     74
     75<constant>scalarmult-pointbytes</constant>
     76
     77The size of field elements in bytes.
     78
     79<constant>scalarmult-scalarbytes</constant>
     80
     81The size of scalar values in bytes.
     82
     83<procedure>(scalarmult* n p)</procedure>
     84
     85Multiplies the field element {{p}} by the scalar {{n}} and returns a new field element.
     86
     87'''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.
     88
    7189==== Symmetric Algorithms
    7290
Note: See TracChangeset for help on using the changeset viewer.