|
esp8266ndn
NDN Arduino library for ESP8266 and more
|
Encrypted message structure. More...
#include <encrypted-message.hpp>
Classes | |
| struct | InPlace |
Public Types | |
| using | IvLen = std::integral_constant< size_t, ivLen > |
| using | TagLen = std::integral_constant< size_t, tagLen > |
Public Member Functions | |
| void | encodeTo (Encoder &encoder) const |
| bool | decodeFrom (const Decoder::Tlv &d) |
Static Public Member Functions | |
| static InPlace | prependInPlace (Encoder &encoder, size_t ciphertextLen) |
Public Attributes | |
| std::array< uint8_t, ivLen > | iv |
| std::array< uint8_t, tagLen > | tag |
| tlv::Value | ciphertext |
Encrypted message structure.
| ivType | TLV-TYPE of initialization-vector element. |
| ivLen | TLV-LENGTH of initialization-vector element. |
| tagType | TLV-TYPE of authentication-tag element. |
| tagLen | TLV-LENGTH of authentication-tag element. |
| epType | TLV-TYPE of encrypted-payload element. |
This class encodes and decodes in the following structure: encrypted-message = [initialization-vector] ; omitted only if ivLen == 0 [authentication-tag] ; omitted only if tagLen == 0 encrypted-payload Other structures are not supported.
| using ndnph::EncryptedMessage< ivType, ivLen, tagType, tagLen, epType >::IvLen = std::integral_constant<size_t, ivLen> |
| using ndnph::EncryptedMessage< ivType, ivLen, tagType, tagLen, epType >::TagLen = std::integral_constant<size_t, tagLen> |
|
inline |
|
inline |
|
inlinestatic |
| tlv::Value ndnph::EncryptedMessage< ivType, ivLen, tagType, tagLen, epType >::ciphertext |
| std::array<uint8_t, ivLen> ndnph::EncryptedMessage< ivType, ivLen, tagType, tagLen, epType >::iv |
| std::array<uint8_t, tagLen> ndnph::EncryptedMessage< ivType, ivLen, tagType, tagLen, epType >::tag |