Public Types | |
using | Time64 = std::uint64_t |
using | SignerIdentifier = boost::variant< const HashedId8_t *, const Certificate_t * > |
using | base = asn1c_wrapper_common< EtsiTs103097Data_t > |
typedef T | asn1c_type |
Public Member Functions | |
uint8_t | protocol_version () const |
ItsAid | its_aid () const |
PacketVariant | payload () const |
bool | is_signed () const |
boost::optional< Time64 > | generation_time () const |
boost::optional< Signature > | signature () const |
SignerIdentifier | signer_identifier () const |
ByteBuffer | signing_payload () const |
ByteBuffer | encode () const |
bool | decode (const ByteBuffer &buffer) |
bool | decode (ByteBuffer::const_iterator begin, ByteBuffer::const_iterator end) |
bool | decode (const void *buffer, std::size_t len) |
std::size_t | size () const |
asn1c_type & | operator* () |
const asn1c_type & | operator* () const |
asn1c_type * | operator-> () |
const asn1c_type * | operator-> () const |
const asn1c_type * | content () const |
asn1c_type * | content () |
bool | validate () const |
bool | validate (std::string &error) const |
void | swap (asn1c_wrapper_common &other) noexcept |
Protected Attributes | |
asn1c_type * | m_struct |
asn_TYPE_descriptor_t & | m_type |
Definition at line 24 of file secured_message.hpp.
|
inherited |
Definition at line 41 of file asn1c_wrapper.hpp.
|
inherited |
Definition at line 172 of file asn1c_wrapper.hpp.
using vanetza::security::v3::SecuredMessage::SignerIdentifier = boost::variant<const HashedId8_t*, const Certificate_t*> |
Definition at line 27 of file secured_message.hpp.
using vanetza::security::v3::SecuredMessage::Time64 = std::uint64_t |
Definition at line 26 of file secured_message.hpp.
vanetza::security::v3::SecuredMessage::SecuredMessage | ( | ) |
Definition at line 99 of file secured_message.cpp.
|
inlineinherited |
Definition at line 74 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 73 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 195 of file asn1c_wrapper.hpp.
|
inlineinherited |
Try to decode ASN.1 struct from byte buffer
buffer | input data |
Definition at line 190 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 200 of file asn1c_wrapper.hpp.
|
inlineinherited |
Encode ASN.1 struct into byte buffer
Definition at line 179 of file asn1c_wrapper.hpp.
boost::optional< SecuredMessage::Time64 > vanetza::security::v3::SecuredMessage::generation_time | ( | ) | const |
Definition at line 141 of file secured_message.cpp.
bool vanetza::security::v3::SecuredMessage::is_signed | ( | ) | const |
Definition at line 136 of file secured_message.cpp.
ItsAid vanetza::security::v3::SecuredMessage::its_aid | ( | ) | const |
Definition at line 109 of file secured_message.cpp.
|
inlineinherited |
Definition at line 67 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 69 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 68 of file asn1c_wrapper.hpp.
|
inlineinherited |
Definition at line 70 of file asn1c_wrapper.hpp.
PacketVariant vanetza::security::v3::SecuredMessage::payload | ( | ) | const |
Definition at line 121 of file secured_message.cpp.
uint8_t vanetza::security::v3::SecuredMessage::protocol_version | ( | ) | const |
Definition at line 104 of file secured_message.cpp.
boost::optional< Signature > vanetza::security::v3::SecuredMessage::signature | ( | ) | const |
Definition at line 154 of file secured_message.cpp.
SecuredMessage::SignerIdentifier vanetza::security::v3::SecuredMessage::signer_identifier | ( | ) | const |
Definition at line 186 of file secured_message.cpp.
ByteBuffer vanetza::security::v3::SecuredMessage::signing_payload | ( | ) | const |
Definition at line 205 of file secured_message.cpp.
|
inlineinherited |
Get size of encoded ASN.1 struct
Definition at line 209 of file asn1c_wrapper.hpp.
|
inlinenoexceptinherited |
Swap ASN.1 wrapper content
other | wrapper |
Definition at line 100 of file asn1c_wrapper.hpp.
|
inlineinherited |
Check ASN.1 constraints
error | (optional) copy of error message |
Definition at line 81 of file asn1c_wrapper.hpp.
|
inlineinherited |
Check ASN.1 constraints
error | Error message if any constraint failed |
Definition at line 91 of file asn1c_wrapper.hpp.
|
protectedinherited |
Definition at line 107 of file asn1c_wrapper.hpp.
|
protectedinherited |
Definition at line 108 of file asn1c_wrapper.hpp.