Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
SignatureComputationData.hpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <cstdint>
13#include <vector>
14
15namespace keypop {
16namespace calypso {
17namespace crypto {
18namespace legacysam {
19namespace transaction {
20
29template <typename T>
31public:
42 virtual T& setData(const std::vector<uint8_t>& data, const uint8_t kif, const uint8_t kvc) = 0;
43
56 virtual T& setSignatureSize(const int size) = 0;
57
68 virtual T& setKeyDiversifier(const std::vector<uint8_t>& diversifier) = 0;
69
77 const std::vector<uint8_t>& getSignature() const = 0;
78};
79
80} /* namespace transaction */
81} /* namespace legacysam */
82} /* namespace crypto */
83} /* namespace calypso */
84} /* namespace keypop */
virtual T & setData(const std::vector< uint8_t > &data, const uint8_t kif, const uint8_t kvc)=0
virtual T & setKeyDiversifier(const std::vector< uint8_t > &diversifier)=0