#include <userver/crypto/public_key.hpp>
Loaded into memory public key
Definition at line 21 of file public_key.hpp.
Public Types | |
using | NativeType = EVP_PKEY |
using | ModulusView = utils::StrongTypedef<class ModulusTag, std::string_view> |
Modulus wrapper. | |
using | ExponentView = utils::StrongTypedef<class ExponentTag, std::string_view> |
Exponent wrapper. | |
using | CoordinateView = utils::StrongTypedef<class CoordinateTag, std::string_view> |
using | CurveTypeView = utils::StrongTypedef<class CurveTypeTag, std::string_view> |
Public Member Functions | |
NativeType * | GetNative () const noexcept |
operator bool () const noexcept | |
Static Public Member Functions | |
static PublicKey | LoadFromString (std::string_view key) |
static PublicKey | LoadFromCertificate (const Certificate &cert) |
static PublicKey | LoadRSAFromComponents (ModulusView modulus, ExponentView exponent) |
static PublicKey | LoadECFromComponents (CurveTypeView curve, CoordinateView x, CoordinateView y) |
using crypto::PublicKey::CoordinateView = utils::StrongTypedef<class CoordinateTag, std::string_view> |
Definition at line 31 of file public_key.hpp.
using crypto::PublicKey::CurveTypeView = utils::StrongTypedef<class CurveTypeTag, std::string_view> |
Definition at line 33 of file public_key.hpp.
using crypto::PublicKey::ExponentView = utils::StrongTypedef<class ExponentTag, std::string_view> |
Exponent wrapper.
Definition at line 29 of file public_key.hpp.
using crypto::PublicKey::ModulusView = utils::StrongTypedef<class ModulusTag, std::string_view> |
Modulus wrapper.
Definition at line 26 of file public_key.hpp.
using crypto::PublicKey::NativeType = EVP_PKEY |
Definition at line 23 of file public_key.hpp.
|
inlinenoexcept |
Definition at line 37 of file public_key.hpp.
|
static |
Creates EC PublicKey from components
crypto::KeyParseError | if failed to load the key. |
|
static |
Extracts PublicKey from certificate.
crypto::KeyParseError | if failed to load the key. |
|
static |
Accepts a string that contains a certificate or public key, checks that it's correct, loads it into OpenSSL structures and returns as a PublicKey variable.
crypto::KeyParseError | if failed to load the key. |
|
static |
Creates RSA PublicKey from components
crypto::KeyParseError | if failed to load the key. |
|
inlineexplicitnoexcept |
Definition at line 38 of file public_key.hpp.