17#ifndef SALTPACK_MESSAGEREADER_H
18#define SALTPACK_MESSAGEREADER_H
22#include "PayloadPacket.h"
23#include "PayloadPacketV2.h"
24#include "SignaturePayloadPacket.h"
77 MessageReader(std::istream &is,
const BYTE_ARRAY& recipientSecretkey,
const std::pair<BYTE_ARRAY, BYTE_ARRAY>& symmetricKey);
132 unsigned long recipientIndex{};
133 std::list<BYTE_ARRAY> recipients;
134 unsigned long packetIndex{};
136 msgpack::unpacker unpacker;
137 bool lastBlockFound{};
138 bool intentionallyAnonymous{};
144 void processEncryptionHeader(std::vector<char> headerBin,
BYTE_ARRAY recipientSecretkey);
146 void processSignatureHeader(std::vector<char> headerBin);
148 void processSigncryptionHeader(std::vector<char> headerBin,
const BYTE_ARRAY& recipientSecretkey,
149 const std::pair<BYTE_ARRAY, BYTE_ARRAY>& symmetricKey);
151 BYTE_ARRAY decryptPacket(std::vector<BYTE_ARRAY> authenticatorsList,
BYTE_ARRAY payloadSecretbox,
bool final);
The class used to decrypt or verify a message.
Definition MessageReader.h:33
std::list< BYTE_ARRAY > getRecipients()
MessageReader(std::istream &is)
MessageReader(std::istream &is, const BYTE_ARRAY &recipientSecretkey)
bool isIntentionallyAnonymous()
~MessageReader() override
MessageReader(std::istream &is, std::istream &messageStream)
MessageReader(std::istream &is, const BYTE_ARRAY &recipientSecretkey, const std::pair< BYTE_ARRAY, BYTE_ARRAY > &symmetricKey)
The saltpack library namespace.
Definition ArmoredInputStream.h:24
std::vector< BYTE > BYTE_ARRAY
Definition types.h:30