/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2019-2021 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <list>
#include <memory>
-#include <tee_client_api.h>
#include <km_serialization.h>
#include <tz-backend/tz-memory.h>
class TZSerializableBinary : public TZSerializable {
public:
- explicit TZSerializableBinary(uint32_t data_size);
+ explicit TZSerializableBinary(uint32_t data_size, bool is_size_fixed = true);
explicit TZSerializableBinary(const RawBuffer &data);
uint32_t GetSize() const override;
int Serialize(void **buffer, uint32_t *size_guard) const override;
void Pull(RawBuffer &buffer) const override;
private:
KM_BinaryData m_data;
+ bool m_isSizeFixed;
+ uint32_t m_expectedSize;
};