1#ifndef F815BB22_3075_4A9D_9385_07876D800765
2#define F815BB22_3075_4A9D_9385_07876D800765
4#include <vanetza/common/its_aid.hpp>
5#include <vanetza/net/packet_variant.hpp>
6#include <vanetza/security/certificate_validity.hpp>
7#include <vanetza/security/hashed_id.hpp>
8#include <vanetza/security/secured_message.hpp>
9#include <vanetza/security/verify_service.hpp>
10#include <boost/optional/optional.hpp>
11#include <boost/variant/variant.hpp>
19
20
21
22
23
24
25
33
34
35
36
37
38
39
40
41
42using DecapReport = boost::variant<boost::blank, VerificationReport>;
45
46
47
48
49
50
51
52
53bool is_successful(
const DecapReport& report);
56
57
58
59
60
61
62bool operator==(
const DecapReport& decap, VerificationReport verification);
63bool operator==(VerificationReport verification,
const DecapReport& decap);
66
67
68
72
73
74
75
76
77
80 PacketVariant plaintext_payload;
83 boost::optional<HashedId8> certificate_id;
85 ByteBuffer permissions;
ChunckPacket is a packet consisting of several memory chunks.
ByteBufferConvertible & operator[](OsiLayer ol)
ChunkPacket & merge(ChunkPacket &packet, OsiLayer from, OsiLayer to)
const ByteBufferConvertible & layer(OsiLayer ol) const
const ByteBufferConvertible & operator[](OsiLayer ol) const
ByteBufferConvertible & layer(OsiLayer ol)
std::size_t size(OsiLayer from, OsiLayer to) const
ChunkPacket extract(OsiLayer from, OsiLayer to)
std::size_t size(OsiLayer from, OsiLayer to) const
buffer_const_range operator[](OsiLayer layer) const
void set_boundary(OsiLayer, unsigned bytes)
const ByteBuffer & buffer() const
CohesivePacket(const ByteBuffer &buffer, OsiLayer layer)
void trim(OsiLayer from, unsigned bytes)
std::size_t size(OsiLayer single_layer) const
value_type operator[](size_type) const
byte_view_range(ByteBuffer &&)
byte_view_range(const ByteBuffer::const_iterator &, const ByteBuffer::const_iterator &)
ByteBuffer::const_pointer data() const
void encode(units::Duration)
units::Duration decode() const
bool after(const Timestamp &other) const
bool before(const Timestamp &other) const
static DecapConfirm from(VerifyConfirm &&verify_confirm, const SecuredMessageView &msg_view)
Input data for decapsulating a secured message.