2#include <vanetza/asn1/security_profile.hpp>
3#include VANETZA_ASN1_SECURITY_HEADER(HashedId3.h)
4#include VANETZA_ASN1_SECURITY_HEADER(HashedId8.h)
5#include <vanetza/security/ecc_point.hpp>
6#include <vanetza/security/hashed_id.hpp>
7#include <vanetza/security/v3/asn1_types.hpp>
15HashedId8 create_hashed_id8(
const Vanetza_Security_HashedId8_t&);
16HashedId3 create_hashed_id3(
const Vanetza_Security_HashedId3_t&);
21HashedId8 convert(
const Vanetza_Security_HashedId8_t&);
24
25
26
27
28void assign(OCTET_STRING_t* dst,
const ByteBuffer& src);
31
32
33
34
35asn1::EccP256CurvePoint to_asn1(
const EccPoint& point);
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