23 using NativeType = EVP_PKEY;
35 PublicKey() =
default;
37 NativeType* GetNative()
const noexcept {
return pkey_.get(); }
38 explicit operator
bool()
const noexcept {
return !!pkey_; }
63 explicit PublicKey(std::shared_ptr<NativeType> pkey)
64 : pkey_(std::move(pkey))
67 std::shared_ptr<NativeType> pkey_;