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#
bytesInInternalBuffer#
uint8_t ParserContext_t::bytesInInternalBuffer
Amount of bytes present in buffer.
internalBufferOffset#
uint8_t ParserContext_t::internalBufferOffset
Current reading offset into the buffer (circular)
inEncryptedContainer#
bool ParserContext_t::inEncryptedContainer
Parser is currently inside an encrypted tag.
lengthOfEncryptedTag#
size_t ParserContext_t::lengthOfEncryptedTag
Total length of current encrypted data block.
offsetInEncryptedTag#
size_t ParserContext_t::offsetInEncryptedTag
Offset into current encrypted data block.
programmingAddress#
uint32_t ParserContext_t::programmingAddress
Current address the image needs to be written to.
tagAddress#
uint32_t ParserContext_t::tagAddress
Current offset of metadata/bootloader being handled (starts at 0)
withheldApplicationVectors#
uint8_t ParserContext_t::withheldApplicationVectors[24]
Withheld application data.
withheldUpgradeVectors#
uint8_t ParserContext_t::withheldUpgradeVectors[4]
Withheld bootloader upgrade data during app parsing.
withheldBootloaderVectors#
uint8_t ParserContext_t::withheldBootloaderVectors[4]
Withheld bootloader upgrade data during bootloader parsing.