Keypairs of the Crypto module. More...
Classes | |
| class | DSA |
| DSA keypair. More... | |
| class | ECC |
| ECC keypair. More... | |
| class | ECDH |
| ECDH keypair. More... | |
| class | ECDSA |
| ECDSA keypair. More... | |
| class | ED25519 |
| Ed25519 keypair. More... | |
| class | Exception |
| Exception from the key-pair component. More... | |
| class | Generic |
| Abstract keypair. More... | |
| class | RSA |
| RSA keypair. More... | |
| class | X25519 |
| X25519 keypair. More... | |
Enumerations | |
| enum class | Type { DSA , ECC , ECDH , ECDSA , ED25519 , RSA , X25519 } |
| Available keypair algorithms. More... | |
| enum class | StorageFormat { PEM , DER } |
| On-disk encoding. More... | |
Functions | |
| Generic::PointerType | Create (Type type, unsigned short bits) noexcept |
| Generate a keypair. | |
| Generic::PointerType | Load (const std::filesystem::path &publicKeyPath, const std::filesystem::path &privateKeyPath) noexcept |
| Load from separate public and private files. | |
| Generic::PointerType | Load (const std::filesystem::path &publicKeyPath, const std::filesystem::path &privateKeyPath, const Secure::Password &password) noexcept |
| Load from separate files; decrypt the private key if needed. | |
| Generic::PointerType | Load (const std::filesystem::path &path) noexcept |
| Load from one file (public, private, or concatenated PEM). | |
| Generic::PointerType | Load (const std::filesystem::path &path, const Secure::Password &password) noexcept |
| Load from one file; decrypt if needed. | |
|
strong |
|
strong |
|
noexcept |
Generate a keypair.
| type | Algorithm. |
| bits | Key size in bits. |
|
noexcept |
Load from one file (public, private, or concatenated PEM).
| path | Key file. |
|
noexcept |
Load from one file; decrypt if needed.
| path | Key file. |
| password | Password for encrypted private material. |
|
noexcept |
Load from separate public and private files.
Format is auto-detected.
| publicKeyPath | Public file, or empty. |
| privateKeyPath | Private file, or empty. No default: a single path is Load(const std::filesystem::path&). |
|
noexcept |
Load from separate files; decrypt the private key if needed.
| publicKeyPath | Public file, or empty. |
| privateKeyPath | Private file. |
| password | Password for an encrypted private key. |