squawk/qomemo/signal/context.h

33 lines
651 B
C
Raw Normal View History

/*
* Created by victoria on 2021-05-13.
*/
#pragma once
2021-07-22 17:45:39 +00:00
#include "crypto/ec.h"
#include <memory>
#include <signal/signal_protocol.h>
namespace Signal {
class Context {
public:
Context();
~Context();
Context(const Context &) = delete;
Context(Context &&) = delete;
Context &operator=(const Context &) = delete;
2021-07-22 17:45:39 +00:00
std::unique_ptr<Crypto::ECKeyPair> generateCurveKeyPair();
signal_context *temporaryGetContextUnsafeForRawAccessThatNeedsToBeWrapped();
private:
2021-07-22 20:01:30 +00:00
signal_crypto_provider cryptoProvider{};
signal_context *ctx{nullptr};
};
} // namespace Signal