Introspection did not find any typical Config paths. More...
#include "qkd-internal-tag.h"
Public Member Functions | |
virtual void | Deserialize (TagBuffer i) |
uint8_t | GetAuthenticateValue (void) const |
uint8_t | GetEncryptValue (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
uint32_t | GetMaxDelayValue (void) const |
virtual uint32_t | GetSerializedSize (void) const |
virtual void | Print (std::ostream &os) const |
virtual void | Serialize (TagBuffer i) const |
void | SetAuthenticateValue (uint8_t value) |
void | SetEncryptValue (uint8_t value) |
void | SetMaxDelayValue (uint32_t value) |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the TypeId. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
uint8_t | m_authenticateValue |
Type of authentication scheme to be used. More... | |
uint8_t | m_encryptValue |
Type of encryption scheme to be used. More... | |
uint32_t | m_maxDelay |
maximal tolerated delay More... | |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Introspection did not find any typical Config paths.
QKDInternalTag is used to carry information from the application layer (L5) about the encryption and authentication scheme that should be used on L2 when encrypting and authenticating the packet.
No TraceSources are defined for this type.
Size of this type is 16 bytes (on a 64-bit architecture).
QKDInternalTag carries info about the desired authentication and encryption mechanism to be used in QKDCrypto on L2 when performing cryptographic operations. Also, it carries details about the maximal tolerated delay in QKD network. The function of MaxDelay field is similar to the Time-to-Live (TTL) field in the IP header of conventional networks, but with the aim of minimizing the consumption of scarce key material in QKD network.
Definition at line 127 of file qkd-internal-tag.h.
|
virtual |
i | the buffer to read data from. |
Read the content of the tag from the provided tag buffer. DO NOT attempt to read more bytes than you wrote with Tag::Serialize.
Implements ns3::Tag.
Definition at line 203 of file qkd-internal-tag.cc.
References ns3::TagBuffer::ReadU32(), and ns3::TagBuffer::ReadU8().
uint8_t ns3::QKDInternalTag::GetAuthenticateValue | ( | void | ) | const |
Definition at line 222 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::QKDCrypto::CheckForResourcesToProcessThePacket(), GetTypeId(), ns3::QKDCrypto::ProcessOutgoingPacket(), and ns3::QKDManager::ProcessOutgoingRequest().
uint8_t ns3::QKDInternalTag::GetEncryptValue | ( | void | ) | const |
Definition at line 234 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::QKDCrypto::CheckForResourcesToProcessThePacket(), GetTypeId(), ns3::QKDCrypto::ProcessOutgoingPacket(), and ns3::QKDManager::ProcessOutgoingRequest().
|
virtual |
Get the most derived TypeId for this Object.
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implements ns3::ObjectBase.
Definition at line 186 of file qkd-internal-tag.cc.
References ns3::QKDCommandTag::GetTypeId().
uint32_t ns3::QKDInternalTag::GetMaxDelayValue | ( | void | ) | const |
Definition at line 247 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::QKDManager::ProcessOutgoingRequest().
|
virtual |
This method is typically invoked by Packet::AddPacketTag or Packet::AddByteTag just prior to calling Tag::Serialize.
Implements ns3::Tag.
Definition at line 191 of file qkd-internal-tag.cc.
|
static |
Get the TypeId.
Definition at line 167 of file qkd-internal-tag.cc.
References GetAuthenticateValue(), GetEncryptValue(), ns3::MakeUintegerAccessor(), and ns3::TypeId::SetParent().
|
virtual |
os | the stream to print to |
This method is typically invoked from the Packet::PrintByteTags or Packet::PrintPacketTags methods.
Implements ns3::Tag.
Definition at line 210 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
|
virtual |
i | the buffer to write data into. |
Write the content of the tag in the provided tag buffer. DO NOT attempt to write more bytes than you requested with Tag::GetSerializedSize.
Implements ns3::Tag.
Definition at line 196 of file qkd-internal-tag.cc.
References ns3::TagBuffer::WriteU32(), and ns3::TagBuffer::WriteU8().
void ns3::QKDInternalTag::SetAuthenticateValue | ( | uint8_t | value | ) |
Definition at line 216 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::QKDCrypto::Decrypt(), and ns3::QKDManager::ProcessOutgoingRequest().
void ns3::QKDInternalTag::SetEncryptValue | ( | uint8_t | value | ) |
Definition at line 228 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::QKDManager::ProcessOutgoingRequest().
void ns3::QKDInternalTag::SetMaxDelayValue | ( | uint32_t | value | ) |
Definition at line 241 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::QKDManager::ProcessOutgoingRequest().
|
private |
Type of authentication scheme to be used.
Definition at line 153 of file qkd-internal-tag.h.
|
private |
Type of encryption scheme to be used.
Definition at line 152 of file qkd-internal-tag.h.
|
private |
maximal tolerated delay
Definition at line 154 of file qkd-internal-tag.h.