|
| PointerType | Clone () const override |
| | Clone this keypair.
|
| |
| PointerType | Move () override |
| | Move this keypair into a new instance.
|
| |
|
| | ED25519 (std::string_view publicKey, std::optional< Secure::Password > privateKey=std::nullopt) |
| | Construct from public material and optional private Password.
|
| |
| | ED25519 (const ED25519 &other)=default |
| | Copy constructor.
|
| |
| | ED25519 (ED25519 &&other) noexcept=default |
| | Move constructor.
|
| |
| | ~ED25519 () noexcept |
| | Destructor.
|
| |
| ED25519 & | operator= (const ED25519 &other)=default |
| | Copy assignment.
|
| |
| ED25519 & | operator= (ED25519 &&other) noexcept=default |
| | Move assignment.
|
| |
| enum Type | Type () const noexcept |
| | Algorithm of this keypair.
|
| |
| const StormByte::Safe::String & | PublicKey () const noexcept |
| | Public key string.
|
| |
| bool | HasPrivateKey () const noexcept |
| | Whether a private key is stored.
|
| |
| const std::optional< Secure::Password > & | PrivateKey () const noexcept |
| | Private key, if any.
|
| |
| | Generic (const Generic &other)=default |
| | Copy constructor.
|
| |
| | Generic (Generic &&other) noexcept=default |
| | Move constructor.
|
| |
| virtual | ~Generic () noexcept |
| | Destructor.
|
| |
| Generic & | operator= (const Generic &other)=default |
| | Copy assignment.
|
| |
| Generic & | operator= (Generic &&other) noexcept=default |
| | Move assignment.
|
| |
| bool | Save (const std::filesystem::path &directory, std::string_view baseName, StorageFormat format=StorageFormat::PEM) const noexcept |
| | Write public and private files under a directory.
|
| |
| bool | Save (const std::filesystem::path &directory, std::string_view baseName, const Secure::Password &encryptPassword, StorageFormat format=StorageFormat::PEM) const noexcept |
| | Write public and private files.
|
| |
| bool | SavePublic (const std::filesystem::path &filePath, StorageFormat format=StorageFormat::PEM) const noexcept |
| | Write only the public key.
|
| |
| bool | SavePrivate (const std::filesystem::path &filePath, StorageFormat format=StorageFormat::PEM) const noexcept |
| | Write only the private key, unencrypted.
|
| |
| bool | SavePrivate (const std::filesystem::path &filePath, const Secure::Password &encryptPassword, StorageFormat format=StorageFormat::PEM) const noexcept |
| | Write only the private key, encrypted (prefer PEM).
|
| |
| constexpr | Clonable ()=default |
| |
| constexpr | Clonable (const Clonable &)=default |
| |
| constexpr | Clonable (Clonable &&) noexcept=default |
| |
| constexpr Clonable & | operator= (const Clonable &)=default |
| |
| constexpr Clonable & | operator= (Clonable &&) noexcept=default |
| |
| virtual constexpr | ~Clonable () noexcept=default |
| |