Represent a SHA256-with-RSA signature. More...
#include <signature-sha256-with-rsa.hpp>
Data Structures | |
class | Error |
Public Types | |
enum | { Sha256 = tlv::DigestSha256, Sha256WithRsa = tlv::SignatureSha256WithRsa, Sha256WithEcdsa = tlv::SignatureSha256WithEcdsa } |
Public Member Functions | |
SignatureSha256WithRsa (const KeyLocator &keyLocator=KeyLocator()) | |
SignatureSha256WithRsa (const Signature &signature) | |
operator bool () const | |
const Block & | getInfo () const |
Get SignatureInfo in the wire format. More... | |
const SignatureInfo & | getSignatureInfo () const |
Get SignatureInfo. More... | |
void | setInfo (const Block &info) |
Set SignatureInfo from a block. More... | |
void | setInfo (const SignatureInfo &info) |
Set SignatureInfo. More... | |
const Block & | getValue () 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 KeyLocator & | getKeyLocator () const |
Get KeyLocator. More... | |
void | setKeyLocator (const KeyLocator &keyLocator) |
Set KeyLocator. More... | |
bool | operator== (const Signature &other) const |
bool | operator!= (const Signature &other) const |
Protected Attributes | |
SignatureInfo | m_info |
Block | m_value |
Represent a SHA256-with-RSA signature.
Definition at line 32 of file signature-sha256-with-rsa.hpp.
|
inherited |
Enumerator | |
---|---|
Sha256 | |
Sha256WithRsa | |
Sha256WithEcdsa |
Definition at line 47 of file signature.hpp.
|
explicit |
Definition at line 26 of file signature-sha256-with-rsa.cpp.
|
explicit |
Definition at line 31 of file signature-sha256-with-rsa.cpp.
|
inlineinherited |
Get SignatureInfo in the wire format.
Definition at line 70 of file signature.hpp.
|
inlineinherited |
Get KeyLocator.
Signature::Error | if KeyLocator does not exist |
Definition at line 143 of file signature.hpp.
|
inlineinherited |
Get SignatureInfo.
Definition at line 79 of file signature.hpp.
|
inlineinherited |
Get signature type.
Definition at line 123 of file signature.hpp.
|
inlineinherited |
Get SignatureValue in the wire format.
Definition at line 105 of file signature.hpp.
|
inlineinherited |
Check if SignatureInfo block has a KeyLocator.
Definition at line 132 of file signature.hpp.
|
inlineinherited |
Definition at line 61 of file signature.hpp.
|
inlineinherited |
Definition at line 178 of file signature.hpp.
|
inlineinherited |
Definition at line 171 of file signature.hpp.
|
inherited |
Set SignatureInfo from a block.
tlv::Error | if supplied block is not formatted correctly |
Definition at line 44 of file signature.cpp.
|
inlineinherited |
Set SignatureInfo.
Definition at line 96 of file signature.hpp.
|
inlineinherited |
Set KeyLocator.
Definition at line 152 of file signature.hpp.
|
inherited |
Get SignatureValue from a block.
tlv::Error | if supplied block has type different from SignatureValue |
Definition at line 50 of file signature.cpp.
|
protectedinherited |
Definition at line 184 of file signature.hpp.
|
mutableprotectedinherited |
Definition at line 185 of file signature.hpp.