This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
component:data [2019/03/09 16:14] is2511 [Tier 3 Callbacks] |
component:data [2020/01/05 02:32] is2511 [Tier 3 Callbacks] duplicate "generated", extra dot, second "and" -> "," |
||
---|---|---|---|
Line 45: | Line 45: | ||
- `ecdsa(data:string, key:userdata[, sig:string]):string or boolean` | - `ecdsa(data:string, key:userdata[, sig:string]):string or boolean` | ||
Generates a signiture of data using a private key. If signature is present | Generates a signiture of data using a private key. If signature is present | ||
- | verifies the signature using the public key and the previously generated | + | verifies the signature using the public key, the previously generated |
- | generated signature string. and the original string. | + | signature string and the original string. |
- `ecdh(privateKey:userdata, publicKey:userdata):string` | - `ecdh(privateKey:userdata, publicKey:userdata):string` | ||
Generates a Diffie-Hellman shared key using the first user's private key and | Generates a Diffie-Hellman shared key using the first user's private key and |