Skip to content

Commit 265d554

Browse files
committed
Document the RSA signature scheme
1 parent afa487d commit 265d554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Runtime Environment/Crypto.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,13 @@ print(base64.encode(enc))
467467
print(enc |> crypto.decrypt|"rsa-pkcs1", priv|) --> A secret message to the owner of the private key.
468468
```
469469
### `crypto.sign`
470+
Signs a message as per the PKCS#1 v1.5 scheme.
470471
#### Parameters
471472
1. `data` — The data to sign.
472473
2. `mode` — "rsa-sha256" or "rsa-sha1".
473474
3. `key` — The private key to use.
474475
### `crypto.verify`
476+
Verifies a message as per the PKCS#1 v1.5 scheme.
475477
#### Parameters
476478
1. `data` — The data that was signed.
477479
2. `mode` — "rsa-sha256" or "rsa-sha1".

0 commit comments

Comments
 (0)