22 : SdlsFileKeyManagerComponentBase(compName), m_path(), m_keySize(0), m_configured(false) {}
28 FW_ASSERT(keySize > 0, static_cast<FwAssertArgType>(keySize));
33 this->m_keySize = keySize;
34 this->m_configured =
true;
46 this->log_WARNING_HI_KeyReadFailed(static_cast<I32>(openStatus), 0, this->m_keySize);
56 this->log_WARNING_HI_KeyReadFailed(static_cast<I32>(readStatus), readSize, this->m_keySize);
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
~SdlsFileKeyManager()
Destroy SdlsFileKeyManager object.
Serializable::SizeType getCapacity() const override
Get buffer capacity.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
SerializeStatus
forward declaration for string
Os::FileInterface::Status open(const char *path, Mode mode)
open file with supplied path and mode
U8 * getBuffAddr()
Get buffer address for data filling (non-const version)
const char * toChar() const
Convert to a C-style char*.
SerializeStatus setBuffLen(Serializable::SizeType length) override
Set buffer length manually.
SdlsFileKeyManager(const char *const compName)
Construct SdlsFileKeyManager object.
Status read(U8 *buffer, FwSizeType &size)
read data from this file into supplied buffer bounded by size
void configure(const char *path, FwSizeType keySize)
Configure the key file path and the key length to read from the file.
StringBase::SizeType getCapacity() const
Return the size of the buffer.
Operation was successful.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
Request completed successfully.
FwSizeType string_length(const CHAR *source, FwSizeType buffer_size)
get the length of the source string