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.
218
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
bytesInInternalBuffer#
uint8_t ParserContext_t::bytesInInternalBuffer
Amount of bytes present in buffer.
220
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
internalBufferOffset#
uint8_t ParserContext_t::internalBufferOffset
Current reading offset into the buffer (circular)
222
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
flags#
uint8_t ParserContext_t::flags
Parser flags.
224
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
inEncryptedContainer#
bool ParserContext_t::inEncryptedContainer
Parser is currently inside an encrypted tag.
226
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
gotSignature#
bool ParserContext_t::gotSignature
Parser has received and verified signature.
228
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
receivedFlags#
uint8_t ParserContext_t::receivedFlags
Parser has received bootloader upgrade tag.
230
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
internalState#
GblParserState_t ParserContext_t::internalState
State of the GBL parser state machine.
232
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
aesContext#
void* ParserContext_t::aesContext
AES-CCM decryption (= AES-CTR) context.
234
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
shaContext#
void* ParserContext_t::shaContext
SHA256 hashing context.
236
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
lengthOfTag#
size_t ParserContext_t::lengthOfTag
Total length of the tag currently being parsed.
238
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
offsetInTag#
size_t ParserContext_t::offsetInTag
Current offset into tag being parsed.
240
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
lengthOfEncryptedTag#
size_t ParserContext_t::lengthOfEncryptedTag
Total length of current encrypted data block.
242
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
offsetInEncryptedTag#
size_t ParserContext_t::offsetInEncryptedTag
Offset into current encrypted data block.
244
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.
246
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)
248
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
withheldApplicationVectors#
uint8_t ParserContext_t::withheldApplicationVectors[24]
Withheld application data.
250
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
withheldUpgradeVectors#
uint8_t ParserContext_t::withheldUpgradeVectors[4]
Withheld bootloader upgrade data during app parsing.
252
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
withheldBootloaderVectors#
uint8_t ParserContext_t::withheldBootloaderVectors[4]
Withheld bootloader upgrade data during bootloader parsing.
254
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
fileCrc#
uint32_t ParserContext_t::fileCrc
Running CRC-32 over the incoming GBL file.
256
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
customTagId#
uint32_t ParserContext_t::customTagId
Context for custom tag.
258
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
currentTagOrder#
uint8_t ParserContext_t::currentTagOrder
Current tag order.
292
of file platform/bootloader/parser/gbl/btl_gbl_parser.h
reservedFlags#
uint8_t ParserContext_t::reservedFlags[3]
Reserved flags.
294
of file platform/bootloader/parser/gbl/btl_gbl_parser.h