12 #include <libcamera/base/span.h> 17 struct gnutls_pubkey_st;
25 PubKey(Span<const uint8_t> key);
29 bool verify(Span<const uint8_t> data, Span<const uint8_t> sig)
const;
34 struct evp_pkey_st *pubkey_;
36 struct gnutls_pubkey_st *pubkey_;
Top-level libcamera namespace.
Definition: backtrace.h:17
bool verify(Span< const uint8_t > data, Span< const uint8_t > sig) const
Verify signature on data.
Definition: pub_key.cpp:90
bool isValid() const
Check is the public key is valid.
Definition: pub_key.h:28
Public key wrapper for signature verification.
Definition: pub_key.h:22
PubKey(Span< const uint8_t > key)
Construct a PubKey from key data.
Definition: pub_key.cpp:38