#ifndef COMPONENTS_REPORTING_ENCRYPTION_PRIMITIVES_H_
#define COMPONENTS_REPORTING_ENCRYPTION_PRIMITIVES_H_
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
namespace reporting {
static constexpr size_t kKeySize = …;
static constexpr size_t kNonceSize = …;
static constexpr size_t kAeadTagSize = …;
static constexpr size_t kSignatureSize = …;
static constexpr size_t kSignKeySize = …;
bool ComputeSharedSecret(const uint8_t peer_public_value[kKeySize],
uint8_t shared_secret[kKeySize],
uint8_t generated_public_value[kKeySize]);
bool ProduceSymmetricKey(const uint8_t shared_secret[kKeySize],
uint8_t symmetric_key[kKeySize]);
bool PerformSymmetricEncryption(const uint8_t symmetric_key[kKeySize],
std::string_view input_data,
std::string* output_data);
bool VerifySignature(const uint8_t verification_key[kKeySize],
std::string_view message,
const uint8_t signature[kSignatureSize]);
}
#endif