2#include <vanetza/common/byte_buffer.hpp>
3#include <vanetza/security/hash_algorithm.hpp>
4#include <vanetza/security/key_type.hpp>
21
22
23
24
25
26
27
28
29
30
31
32ByteBuffer calculate_message_hash(
Backend&, HashAlgorithm,
const ByteBuffer& data,
const CertificateView& signing);
35
36
37
38
39
40HashAlgorithm specified_hash_algorithm(KeyType key_type);
virtual Signature sign_digest(const PrivateKey &, const ByteBuffer &digest)=0
calculate signature for given digest and private key
virtual bool verify_digest(const PublicKey &public_key, const ByteBuffer &digest, const Signature &sig)=0
try to verify digest using public key and signature
virtual ByteBuffer calculate_hash(HashAlgorithm algo, const ByteBuffer &data)=0
calculate hash value of data
ByteBuffer encode() const
boost::optional< Certificate > canonicalize() const
bool is_at_certificate() const
bool is_ca_certificate() const
bool issuer_is_self() const
boost::optional< HashedId8 > calculate_digest() const
boost::optional< HashedId8 > issuer_digest() const