Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
OID Class Reference

Object Identifier. More...

#include <asn.h>

Public Member Functions

virtual ~OID ()
 
 OID ()
 Construct an OID. More...
 
 OID (word32 v)
 Construct an OID. More...
 
 OID (BufferedTransformation &bt)
 Construct an OID. More...
 
OIDoperator+= (word32 rhs)
 Append a value to an OID. More...
 
void DEREncode (BufferedTransformation &bt) const
 DER encode this OID. More...
 
void BERDecode (BufferedTransformation &bt)
 BER decode an OID. More...
 
void BERDecodeAndCheck (BufferedTransformation &bt) const
 BER decode an OID. More...
 

Public Attributes

std::vector< word32m_values
 

Static Private Member Functions

static void EncodeValue (BufferedTransformation &bt, word32 v)
 
static size_t DecodeValue (BufferedTransformation &bt, word32 &v)
 

Detailed Description

Object Identifier.

Definition at line 166 of file asn.h.

Constructor & Destructor Documentation

virtual OID::~OID ( )
inlinevirtual

Definition at line 169 of file asn.h.

OID::OID ( )
inline

Construct an OID.

Definition at line 172 of file asn.h.

OID::OID ( word32  v)
inline

Construct an OID.

Parameters
vvalue to initialize the OID

Definition at line 175 of file asn.h.

OID::OID ( BufferedTransformation bt)
inline

Construct an OID.

Parameters
btBufferedTransformation object

Definition at line 178 of file asn.h.

Member Function Documentation

void OID::BERDecode ( BufferedTransformation bt)

BER decode an OID.

Parameters
btBufferedTransformation object

Definition at line 268 of file asn.cpp.

Here is the call graph for this function:

void OID::BERDecodeAndCheck ( BufferedTransformation bt) const

BER decode an OID.

Parameters
btBufferedTransformation object
Exceptions
BERDecodeErr()if decoded value doesn't match an expected OID

BERDecodeAndCheck() can be used to parse an OID and verify it matches an expected.

  BERSequenceDecoder key(bt);
  ...
  BERSequenceDecoder algorithm(key);
  GetAlgorithmID().BERDecodeAndCheck(algorithm);

Definition at line 297 of file asn.cpp.

Here is the call graph for this function:

size_t OID::DecodeValue ( BufferedTransformation bt,
word32 v 
)
staticprivate

Definition at line 237 of file asn.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void OID::DEREncode ( BufferedTransformation bt) const

DER encode this OID.

Parameters
btBufferedTransformation object

Definition at line 256 of file asn.cpp.

Here is the call graph for this function:

void OID::EncodeValue ( BufferedTransformation bt,
word32  v 
)
staticprivate

Definition at line 230 of file asn.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

OID& OID::operator+= ( word32  rhs)
inline

Append a value to an OID.

Parameters
rhsthe value to append

Definition at line 182 of file asn.h.

Member Data Documentation

std::vector<word32> OID::m_values

Definition at line 204 of file asn.h.


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