Object Identifier.
More...
#include <asn.h>
|
bool | operator== (const OID &lhs, const OID &rhs) |
| Compare two OIDs for equality.
|
|
bool | operator!= (const OID &lhs, const OID &rhs) |
| Compare two OIDs for inequality.
|
|
bool | operator< (const OID &lhs, const OID &rhs) |
| Compare two OIDs for ordering.
|
|
bool | operator> (const OID &lhs, const OID &rhs) |
| Compare two OIDs for ordering.
|
|
bool | operator<= (const OID &lhs, const OID &rhs) |
| Compare two OIDs for ordering.
|
|
bool | operator>= (const OID &lhs, const OID &rhs) |
| Compare two OIDs for ordering.
|
|
Object Identifier.
Definition at line 264 of file asn.h.
◆ ~OID()
◆ OID() [1/3]
Construct an OID.
Definition at line 270 of file asn.h.
◆ OID() [2/3]
Construct an OID.
- Parameters
-
v | value to initialize the OID |
Definition at line 274 of file asn.h.
◆ OID() [3/3]
Construct an OID.
- Parameters
-
Definition at line 278 of file asn.h.
◆ operator+=()
Append a value to an OID.
- Parameters
-
Definition at line 284 of file asn.h.
◆ DEREncode()
DER encode this OID.
- Parameters
-
◆ BERDecode()
BER decode an OID.
- Parameters
-
◆ BERDecodeAndCheck()
◆ Empty()
bool OID::Empty |
( |
| ) |
const |
|
inline |
Determine if OID is empty.
- Returns
- true if OID has 0 elements, false otherwise
- Since
- Crypto++ 8.0
Definition at line 311 of file asn.h.
◆ GetValues()
const std::vector< word32 > & OID::GetValues |
( |
| ) |
const |
|
inline |
Retrieve OID value array.
- Returns
- OID value vector
- Since
- Crypto++ 8.0
Definition at line 318 of file asn.h.
◆ Print()
std::ostream & OID::Print |
( |
std::ostream & | out | ) |
const |
Print an OID.
- Parameters
-
- Returns
- ostream reference
Print() writes the OID in a customary format, like 1.2.840.113549.1.1.11. The caller is reposnsible to convert the OID to a friendly name, like sha256WithRSAEncryption.
- Since
- Crypto++ 8.3
◆ operator==
bool operator== |
( |
const OID & | lhs, |
|
|
const OID & | rhs ) |
|
friend |
Compare two OIDs for equality.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the OIDs are equal, false otherwise
◆ operator!=
bool operator!= |
( |
const OID & | lhs, |
|
|
const OID & | rhs ) |
|
friend |
Compare two OIDs for inequality.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the OIDs are not equal, false otherwise
◆ operator<
bool operator< |
( |
const OID & | lhs, |
|
|
const OID & | rhs ) |
|
friend |
Compare two OIDs for ordering.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the first OID is less than the second OID, false otherwise
operator<() calls std::lexicographical_compare() on the values.
◆ operator>
bool operator> |
( |
const OID & | lhs, |
|
|
const OID & | rhs ) |
|
friend |
Compare two OIDs for ordering.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the first OID is greater than the second OID, false otherwise
operator>() is implemented in terms of operator==() and operator<().
- Since
- Crypto++ 8.3
◆ operator<=
bool operator<= |
( |
const OID & | lhs, |
|
|
const OID & | rhs ) |
|
friend |
Compare two OIDs for ordering.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the first OID is less than or equal to the second OID, false otherwise
operator<=() is implemented in terms of operator==() and operator<().
- Since
- Crypto++ 8.3
◆ operator>=
bool operator>= |
( |
const OID & | lhs, |
|
|
const OID & | rhs ) |
|
friend |
Compare two OIDs for ordering.
- Parameters
-
lhs | the first OID |
rhs | the second OID |
- Returns
- true if the first OID is greater than or equal to the second OID, false otherwise
operator>=() is implemented in terms of operator<().
- Since
- Crypto++ 8.3
The documentation for this class was generated from the following file: