#include <backend.hpp>
Public Member Functions | |
| virtual EcdsaSignature | sign_data (const ecdsa256::PrivateKey &private_key, const ByteBuffer &data)=0 |
| calculate signature for given data and private key | |
| virtual Signature | sign_digest (const PrivateKey &, const ByteBuffer &digest)=0 |
| calculate signature for given digest and private key | |
| virtual bool | verify_data (const ecdsa256::PublicKey &public_key, const ByteBuffer &data, const EcdsaSignature &sig)=0 |
| try to verify data using public key and signature | |
| virtual bool | verify_digest (const PublicKey &public_key, const ByteBuffer &digest, const Signature &sig)=0 |
| try to verify digest using public key and signature | |
| virtual boost::optional< Uncompressed > | decompress_point (const EccPoint &ecc_point)=0 |
| decompress a possibly compressed elliptic curve point | |
| virtual ByteBuffer | calculate_hash (HashAlgorithm algo, const ByteBuffer &data)=0 |
| calculate hash value of data | |
Interface to cryptographic features
Definition at line 24 of file backend.hpp.
|
pure virtual |
calculate hash value of data
| algo | hash algorithm |
| data | buffer with data |
Implemented in vanetza::security::BackendCryptoPP, vanetza::security::BackendNull, and vanetza::security::BackendOpenSsl.
|
pure virtual |
decompress a possibly compressed elliptic curve point
| ecc_point | elliptic curve point |
Implemented in vanetza::security::BackendCryptoPP, vanetza::security::BackendNull, and vanetza::security::BackendOpenSsl.
|
pure virtual |
calculate signature for given data and private key
| private_key | Secret private key |
| data | buffer with plaintext data |
Implemented in vanetza::security::BackendCryptoPP, vanetza::security::BackendNull, and vanetza::security::BackendOpenSsl.
|
pure virtual |
calculate signature for given digest and private key
| private_key | secret private key |
| digest | hash value of data |
Implemented in vanetza::security::BackendCryptoPP, vanetza::security::BackendNull, and vanetza::security::BackendOpenSsl.
|
pure virtual |
try to verify data using public key and signature
| public_key | Public key |
| data | plaintext |
| sig | signature of data |
Implemented in vanetza::security::BackendCryptoPP, vanetza::security::BackendNull, and vanetza::security::BackendOpenSsl.
|
pure virtual |
try to verify digest using public key and signature
| public_key | public key |
| digest | hash value of data |
| sig | signature of data |
Implemented in vanetza::security::BackendCryptoPP, vanetza::security::BackendNull, and vanetza::security::BackendOpenSsl.