NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::DigestSha256 Class Reference

Represent a SHA256 digest. More...

#include <digest-sha256.hpp>

Inheritance diagram for ndn::DigestSha256:
Collaboration diagram for ndn::DigestSha256:


class  Error

Public Member Functions

 DigestSha256 ()
 DigestSha256 (const Signature &signature)
- Public Member Functions inherited from ndn::Signature
 Signature ()=default
 Signature (const Block &info, const Block &value=Block())
 Signature (const SignatureInfo &info, const Block &value=Block())
 operator bool () const
const BlockgetInfo () const
 Get SignatureInfo in the wire format. More...
const SignatureInfogetSignatureInfo () const
 Get SignatureInfo. More...
void setInfo (const Block &info)
 Set SignatureInfo from a block. More...
void setInfo (const SignatureInfo &info)
 Set SignatureInfo. More...
const BlockgetValue () const
 Get SignatureValue in the wire format. More...
void setValue (const Block &value)
 Get SignatureValue from a block. More...
uint32_t getType () const
 Get signature type. More...
bool hasKeyLocator () const
 Check if SignatureInfo block has a KeyLocator. More...
const KeyLocatorgetKeyLocator () const
 Get KeyLocator. More...
void setKeyLocator (const KeyLocator &keyLocator)
 Set KeyLocator. More...
void unsetKeyLocator ()
 Unset KeyLocator. More...
bool operator== (const Signature &other) const
bool operator!= (const Signature &other) const

Additional Inherited Members

- Public Types inherited from ndn::Signature
enum  { Sha256 = tlv::DigestSha256, Sha256WithRsa = tlv::SignatureSha256WithRsa, Sha256WithEcdsa = tlv::SignatureSha256WithEcdsa }
- Protected Attributes inherited from ndn::Signature
SignatureInfo m_info
Block m_value

Detailed Description

Represent a SHA256 digest.

Definition at line 33 of file digest-sha256.hpp.

Constructor & Destructor Documentation

◆ DigestSha256() [1/2]

ndn::DigestSha256::DigestSha256 ( )

Definition at line 26 of file digest-sha256.cpp.

Referenced by ndn::DigestSha256::Error::Error().

◆ DigestSha256() [2/2]

ndn::DigestSha256::DigestSha256 ( const Signature signature)

Definition at line 31 of file digest-sha256.cpp.

References ndn::tlv::DigestSha256, and ndn::Signature::getType().

The documentation for this class was generated from the following files: