7 #ifndef __LIBCAMERA_INTERNAL_PUB_KEY_H__
8 #define __LIBCAMERA_INTERNAL_PUB_KEY_H__
12 #include <libcamera/span.h>
15 struct gnutls_pubkey_st;
23 PubKey(Span<const uint8_t> key);
27 bool verify(Span<const uint8_t> data, Span<const uint8_t> sig)
const;
32 struct gnutls_pubkey_st *pubkey_;
Public key wrapper for signature verification.
Definition: pub_key.h:21
PubKey(Span< const uint8_t > key)
Construct a PubKey from key data.
Definition: pub_key.cpp:33
bool verify(Span< const uint8_t > data, Span< const uint8_t > sig) const
Verify signature on data.
Definition: pub_key.cpp:76
bool isValid() const
Check is the public key is valid.
Definition: pub_key.h:26