| 1 |
rsa: RSA signature and encryption scheme implementation |
| 2 |
|
| 3 |
This module provides RSA signature and encryption schemes defined in PKCS #1. |
| 4 |
The implementation only supports RSA keys with two prime factors. Most of the |
| 5 |
RSA operations in this module require buffers to perform. Buffer sizes are |
| 6 |
provided for keys of a default maximum size of 4096-bits. [[BITSZ]] |
| 7 |
may be changed with compiler flags to support bigger keys. [[MINBITSZ]] |
| 8 |
defines the minimum size accordingly. |
| 9 |
|
| 10 |
Public and private keys are stored in byte slices. [[pubkey_init]] is used |
| 11 |
to initialize a public key. [[privkey_init]] or [[privkey_initd]] is used |
| 12 |
to initialize a private key, depending on which parameters are available. |
| 13 |
|
| 14 |
This is a low-level module which implements cryptographic primitives. Direct |
| 15 |
use of cryptographic primitives is not recommended for non-experts, as |
| 16 |
incorrect use of these primitives can easily lead to the introduction of |
| 17 |
security vulnerabilities. Non-experts are advised to use the high-level |
| 18 |
operations available in the top-level [[crypto::]] module. |
| 19 |
|
| 20 |
Be advised that Hare's cryptography implementations have not been audited. |