mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
17 lines
345 B
C++
17 lines
345 B
C++
#pragma once
|
|
#include "IECDHKeyExchange.h"
|
|
#include "cryptopp_inc.h"
|
|
|
|
class ECDHKeyExchange : public IECDHKeyExchange
|
|
{
|
|
public:
|
|
ECDHKeyExchange();
|
|
|
|
virtual std::string getPublicKey();
|
|
|
|
virtual std::string getSharedKey( const std::string& other_public );
|
|
|
|
private:
|
|
CryptoPP::SecByteBlock priv;
|
|
CryptoPP::SecByteBlock pub;
|
|
}; |