Vanetza
 
Loading...
Searching...
No Matches
sign_service.hpp
1#ifndef SIGN_SERVICE_HPP_4MDQBSEF
2#define SIGN_SERVICE_HPP_4MDQBSEF
3
4#include <vanetza/common/byte_buffer.hpp>
5#include <vanetza/common/its_aid.hpp>
6#include <vanetza/common/position_provider.hpp>
7#include <vanetza/net/packet.hpp>
8#include <vanetza/security/secured_message.hpp>
9#include <vanetza/security/signing_policy.hpp>
10#include <functional>
11
12namespace vanetza
13{
14
15// forward declaration
16class Runtime;
17
18namespace security
19{
20
21// mandatory SN-SIGN.request parameters
23{
24 DownPacket plain_message;
25 ItsAid its_aid;
26 ByteBuffer permissions;
27};
28
29// mandatory SN-SIGN.confirm parameters
31{
32 SecuredMessage secured_message;
33};
34
35/**
36 * Equivalant of SN-SIGN service in TS 102 723-8 v1.1.1
37 */
39{
40public:
41 virtual ~SignService() = default;
42 virtual SignConfirm sign(SignRequest&&) = 0;
43};
44
45} // namespace security
46} // namespace vanetza
47
48#endif /* SIGN_SERVICE_HPP_4MDQBSEF */
ChunckPacket is a packet consisting of several memory chunks.