/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * Copyright (C) 2020, Google Inc. * * pub_key.h - Public key signature verification */ #pragma once #include #include #if HAVE_GNUTLS struct gnutls_pubkey_st; #endif namespace libcamera { class PubKey { public: PubKey(Span key); ~PubKey(); bool isValid() const { return valid_; } bool verify(Span data, Span sig) const; private: bool valid_; #if HAVE_GNUTLS struct gnutls_pubkey_st *pubkey_; #endif }; } /* namespace libcamera */