A backend doing nothing. More...
#include <backend_null.hpp>
Public Member Functions | |
EcdsaSignature | sign_data (const ecdsa256::PrivateKey &private_key, const ByteBuffer &data_buffer) override |
bool | verify_data (const ecdsa256::PublicKey &public_key, const ByteBuffer &data, const EcdsaSignature &sig) override |
bool | verify_digest (const PublicKey &, const ByteBuffer &digest, const Signature &) override |
boost::optional< Uncompressed > | decompress_point (const EccPoint &ecc_point) override |
ByteBuffer | calculate_hash (KeyType, const ByteBuffer &) override |
Static Public Attributes | |
static constexpr auto | backend_name = "Null" |
Private Member Functions | |
EcdsaSignature | fake_signature () const |
A backend doing nothing.
This backend is INSECURE quite obviously! It will return a faked signature and silently accept all data at verification.
Definition at line 17 of file backend_null.hpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 46 of file backend_null.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 29 of file backend_null.cpp.
|
private |
Definition at line 34 of file backend_null.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 11 of file backend_null.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 17 of file backend_null.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 23 of file backend_null.cpp.
|
staticconstexpr |
Definition at line 20 of file backend_null.hpp.