Backend implementation based on OpenSSL. More...
#include <backend_openssl.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 |
ByteBuffer | calculate_hash (KeyType, const ByteBuffer &) override |
boost::optional< Uncompressed > | decompress_point (const EccPoint &ecc_point) override |
Static Public Attributes | |
static constexpr auto | backend_name = "OpenSSL" |
Private Member Functions | |
std::array< uint8_t, 32 > | calculate_sha256_digest (const ByteBuffer &data) const |
calculate SHA256 digest of data buffer | |
std::array< uint8_t, 48 > | calculate_sha384_digest (const ByteBuffer &data) const |
calculate SHA384 digest of data buffer | |
openssl::Key | internal_private_key (const ecdsa256::PrivateKey &) const |
convert to internal format of private key | |
openssl::Key | internal_public_key (const ecdsa256::PublicKey &) const |
convert to internal format of public key | |
openssl::Key | internal_public_key (const PublicKey &) const |
openssl::Point | internal_ec_point (const PublicKey &) const |
convert to internal format of an EC point | |
Backend implementation based on OpenSSL.
Definition at line 25 of file backend_openssl.hpp.
vanetza::security::BackendOpenSsl::BackendOpenSsl | ( | ) |
Definition at line 43 of file backend_openssl.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 175 of file backend_openssl.cpp.
|
private |
calculate SHA256 digest of data buffer
Definition at line 197 of file backend_openssl.cpp.
|
private |
calculate SHA384 digest of data buffer
Definition at line 209 of file backend_openssl.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 111 of file backend_openssl.cpp.
|
private |
convert to internal format of an EC point
Definition at line 256 of file backend_openssl.cpp.
|
private |
convert to internal format of private key
Definition at line 218 of file backend_openssl.cpp.
|
private |
convert to internal format of public key
Definition at line 235 of file backend_openssl.cpp.
|
private |
Definition at line 246 of file backend_openssl.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 52 of file backend_openssl.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 91 of file backend_openssl.cpp.
|
overridevirtual |
Implements vanetza::security::Backend.
Definition at line 100 of file backend_openssl.cpp.
|
staticconstexpr |
Definition at line 28 of file backend_openssl.hpp.