#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 | 
| Exponent wrapper.   | |
| using | CoordinateView | 
| using | CurveTypeView | 
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) | 
Definition at line 32 of file public_key.hpp.
Definition at line 35 of file public_key.hpp.
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 40 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 41 of file public_key.hpp.