|
static std::string | sha256digest (const std::string &text) |
|
static std::string | sha512digest (const std::string &text) |
|
static std::string | RSAPSSSign (ENGINE *engine, const std::string &private_key, const std::string &message) |
|
static std::string | Sign (KeyType key_type, ENGINE *engine, const std::string &private_key, const std::string &message) |
|
static std::string | ED25519Sign (const std::string &private_key, const std::string &message) |
|
static bool | parseP12 (BIO *p12_bio, const std::string &p12_password, std::string *out_pkey, std::string *out_cert, std::string *out_ca) |
|
static bool | extractSubjectCN (const std::string &cert, std::string *cn) |
|
static StructGuard< EVP_PKEY > | generateRSAKeyPairEVP (KeyType key_type) |
|
static bool | generateRSAKeyPair (KeyType key_type, std::string *public_key, std::string *private_key) |
| Generate a RSA keypair. More...
|
|
static bool | generateEDKeyPair (std::string *public_key, std::string *private_key) |
|
static bool | generateKeyPair (KeyType key_type, std::string *public_key, std::string *private_key) |
|
static bool | RSAPSSVerify (const std::string &public_key, const std::string &signature, const std::string &message) |
|
static bool | ED25519Verify (const std::string &public_key, const std::string &signature, const std::string &message) |
|
static bool | IsRsaKeyType (KeyType type) |
|
static KeyType | IdentifyRSAKeyType (const std::string &public_key_pem) |
|
Definition at line 98 of file crypto.h.
◆ generateRSAKeyPair()
bool Crypto::generateRSAKeyPair |
( |
KeyType |
key_type, |
|
|
std::string * |
public_key, |
|
|
std::string * |
private_key |
|
) |
| |
|
static |
Generate a RSA keypair.
- Parameters
-
key_type | Algorithm used to generate the key |
public_key | Generated public part of key |
private_key | Generated private part of key |
- Returns
- true if the keys are present at the end of this function (either they were created or existed already) false if key generation failed
Definition at line 383 of file crypto.cc.
The documentation for this class was generated from the following files: