#include "components/gcm_driver/crypto/encryption_header_parsers.h"
#include <string_view>
#include "base/base64url.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
namespace gcm {
namespace {
const uint64_t kDefaultRecordSizeBytes = …;
bool ValueToDecodedString(std::string_view value, std::string* salt) { … }
bool RecordSizeToInt(std::string_view value, uint64_t* rs) { … }
}
EncryptionHeaderIterator::EncryptionHeaderIterator(
std::string::const_iterator header_begin,
std::string::const_iterator header_end)
: … { … }
EncryptionHeaderIterator::~EncryptionHeaderIterator() { … }
bool EncryptionHeaderIterator::GetNext() { … }
CryptoKeyHeaderIterator::CryptoKeyHeaderIterator(
std::string::const_iterator header_begin,
std::string::const_iterator header_end)
: … { … }
CryptoKeyHeaderIterator::~CryptoKeyHeaderIterator() { … }
bool CryptoKeyHeaderIterator::GetNext() { … }
}