35 BOOST_THROW_EXCEPTION(
Error(
"Cannot construct Sha256WithEcdsa from SignatureType " +
to_string(
getType())));
38 BOOST_THROW_EXCEPTION(
Error(
"KeyLocator is missing in Sha256WithEcdsa signature"));
43 SignatureSha256WithEcdsa::unsetKeyLocator()
45 BOOST_THROW_EXCEPTION(
Error(
"KeyLocator cannot be unset in Sha256WithEcdsa signature"));
Copyright (c) 2013-2017 Regents of the University of California.
Represents a SignatureInfo TLV element.
bool hasKeyLocator() const
Check if KeyLocator exists in SignatureInfo.
Represents a signature of Sha256WithEcdsa type.
SignatureSha256WithEcdsa(const KeyLocator &keyLocator=KeyLocator())
Create Sha256WithEcdsa signature with specified KeyLocator.
tlv::SignatureTypeValue getType() const
Get SignatureType.
std::string to_string(const V &v)
Holds SignatureInfo and SignatureValue in a Data packet.