|
Crypto++
8.1
Free C++ class library of cryptographic schemes
|
Object Identifier. More...
Public Member Functions | |
| OID () | |
| Construct an OID. | |
| OID (word32 v) | |
| Construct an OID. More... | |
| OID (BufferedTransformation &bt) | |
| Construct an OID. More... | |
| OID & | operator+= (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... | |
| bool | Empty () const |
| const std::vector< word32 > & | GetValues () const |
Friends | |
| bool | operator== (const OID &lhs, const OID &rhs) |
| Compare two OIDs for equality. More... | |
| bool | operator!= (const OID &lhs, const OID &rhs) |
| Compare two OIDs for inequality. More... | |
| bool | operator< (const OID &lhs, const OID &rhs) |
| Compare two OIDs for ordering. More... | |
|
inline |
|
inline |
|
inline |
| void OID::DEREncode | ( | BufferedTransformation & | bt | ) | const |
DER encode this OID.
| bt | BufferedTransformation object |
| void OID::BERDecode | ( | BufferedTransformation & | bt | ) |
BER decode an OID.
| bt | BufferedTransformation object |
| void OID::BERDecodeAndCheck | ( | BufferedTransformation & | bt | ) | const |
BER decode an OID.
| bt | BufferedTransformation object |
| 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);
Compare two OIDs for ordering.
operator<() calls std::lexicographical_compare() on each element in the array of values.
1.8.14