Vanetza
 
Loading...
Searching...
No Matches
security_entity.hpp
1#ifndef SECURITY_ENTITY_HPP
2#define SECURITY_ENTITY_HPP
3
4#include <vanetza/security/decap_confirm.hpp>
5#include <vanetza/security/decap_request.hpp>
6#include <vanetza/security/encap_confirm.hpp>
7#include <vanetza/security/encap_request.hpp>
8
9namespace vanetza
10{
11namespace security
12{
13
15{
16public:
17 /**
18 * \brief Creates a security envelope covering the given payload.
19 *
20 * The payload consists of the CommonHeader, ExtendedHeader and the payload of
21 * the layers above the network layer. The entire security envelope is used
22 * to calculate a signature which gets added to the resulting SecuredMessage.
23 *
24 * \param request containing payload to sign
25 * \return confirmation containing signed SecuredMessage
26 */
28
29 /**
30 * \brief Decapsulates the payload within a SecuredMessage
31 *
32 * Verifies the Signature and SignerInfo of a SecuredMessage.
33 *
34 * \param request containing a SecuredMessage
35 * \return decapsulation confirmation including plaintext payload
36 */
38
39 virtual ~SecurityEntity() = default;
40};
41
42} // namespace security
43} // namespace vanetza
44
45#endif // SECURITY_ENTITY_HPP
virtual EncapConfirm encapsulate_packet(EncapRequest &&request)=0
Creates a security envelope covering the given payload.
virtual DecapConfirm decapsulate_packet(DecapRequest &&request)=0
Decapsulates the payload within a SecuredMessage.
contains output of the verify process described in TS 102 723-8 v1.0.0 (2013-07) TS 102 636-4-1 v1....
contains input for verify process described in TS 102 723-8 v1.0.0 (2013-07) TS 102 636-4-1 v1....
contains output of the signing process described in TS 102 636-4-1 v1.2.3 (2015-01)