Image parser context definition.
Public Attributes#
Buffer contents.
Amount of bytes present in buffer.
Current reading offset into the buffer (circular)
Parser flags.
Parser is currently inside an encrypted tag.
Parser has received and verified signature.
Parser has received bootloader upgrade tag.
State of the GBL parser state machine.
AES-CCM decryption (= AES-CTR) context.
SHA256 hashing context.
Total length of the tag currently being parsed.
Current offset into tag being parsed.
Total length of current encrypted data block.
Offset into current encrypted data block.
Current address the image needs to be written to.
Current offset of metadata/bootloader being handled (starts at 0)
Withheld application data.
Withheld bootloader upgrade data during app parsing.
Withheld bootloader upgrade data during bootloader parsing.
Running CRC-32 over the incoming GBL file.
Context for custom tag.
Current tag order.
Reserved flags.
Public Attribute Documentation#
internalBuffer#
uint8_t ParserContext_t::internalBuffer[64]
Buffer contents.
211
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
bytesInInternalBuffer#
uint8_t ParserContext_t::bytesInInternalBuffer
Amount of bytes present in buffer.
213
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
internalBufferOffset#
uint8_t ParserContext_t::internalBufferOffset
Current reading offset into the buffer (circular)
215
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
flags#
uint8_t ParserContext_t::flags
Parser flags.
217
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
inEncryptedContainer#
bool ParserContext_t::inEncryptedContainer
Parser is currently inside an encrypted tag.
219
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
gotSignature#
bool ParserContext_t::gotSignature
Parser has received and verified signature.
221
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
receivedFlags#
uint8_t ParserContext_t::receivedFlags
Parser has received bootloader upgrade tag.
223
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
internalState#
GblParserState_t ParserContext_t::internalState
State of the GBL parser state machine.
225
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
aesContext#
void* ParserContext_t::aesContext
AES-CCM decryption (= AES-CTR) context.
227
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
shaContext#
void* ParserContext_t::shaContext
SHA256 hashing context.
229
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
lengthOfTag#
size_t ParserContext_t::lengthOfTag
Total length of the tag currently being parsed.
231
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
offsetInTag#
size_t ParserContext_t::offsetInTag
Current offset into tag being parsed.
233
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
lengthOfEncryptedTag#
size_t ParserContext_t::lengthOfEncryptedTag
Total length of current encrypted data block.
235
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
offsetInEncryptedTag#
size_t ParserContext_t::offsetInEncryptedTag
Offset into current encrypted data block.
237
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
programmingAddress#
uint32_t ParserContext_t::programmingAddress
Current address the image needs to be written to.
239
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
tagAddress#
uint32_t ParserContext_t::tagAddress
Current offset of metadata/bootloader being handled (starts at 0)
241
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
withheldApplicationVectors#
uint8_t ParserContext_t::withheldApplicationVectors[24]
Withheld application data.
243
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
withheldUpgradeVectors#
uint8_t ParserContext_t::withheldUpgradeVectors[4]
Withheld bootloader upgrade data during app parsing.
245
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
withheldBootloaderVectors#
uint8_t ParserContext_t::withheldBootloaderVectors[4]
Withheld bootloader upgrade data during bootloader parsing.
247
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
fileCrc#
uint32_t ParserContext_t::fileCrc
Running CRC-32 over the incoming GBL file.
249
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
customTagId#
uint32_t ParserContext_t::customTagId
Context for custom tag.
251
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
currentTagOrder#
uint8_t ParserContext_t::currentTagOrder
Current tag order.
269
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
reservedFlags#
uint8_t ParserContext_t::reservedFlags[3]
Reserved flags.
271
of file platform/bootloader/parser/gbl/btl_gbl_parser.h