24 using NativeType = EVP_PKEY;
36 PublicKey() =
default;
38 NativeType* GetNative()
const noexcept {
return pkey_.get(); }
39 explicit operator
bool()
const noexcept {
return !!pkey_; }
69 explicit PublicKey(std::shared_ptr<NativeType> pkey)
70 : pkey_(std::move(pkey))
73 std::shared_ptr<NativeType> pkey_;