Lines Matching +full:- +full:e

2 # Copyright 2017-2020 Linaro Limited
3 # Copyright 2019-2024 Arm Limited
5 # SPDX-License-Identifier: Apache-2.0
11 # http://www.apache.org/licenses/LICENSE-2.0
118 assert (align & (align - 1) == 0) and align != 0
119 return (num + (align - 1)) & ~(align - 1)
135 e = STRUCT_ENDIAN_DICT[self.endian]
142 buf = struct.pack(e + 'HH', kind, len(payload))
144 buf = struct.pack(e + 'BBH', TLV_VALUES[kind], 0, len(payload))
151 e = STRUCT_ENDIAN_DICT[self.endian]
152 header = struct.pack(e + 'HH', self.magic, len(self))
218 raise click.UsageError("Key {} can not be used with --sha {}; allowed sha are one of {}"
344 self.base_addr -= self.header_size
359 self.base_addr -= self.header_size
383 trailer_addr = (self.base_addr + self.slot_size) - trailer_size
387 image_ok_idx = -(magic_align_size + self.max_align)
392 h.puts(trailer_addr + (trailer_size - len(self.boot_magic)),
412 padding = self.slot_size - (len(self.payload) + tsize)
530 pad = bytes(16 - pad_len)
555 e = STRUCT_ENDIAN_DICT[self.endian]
558 payload = struct.pack(e + 'I', self.security_counter)
567 e + 'B3x' + 'BBHI',
591 # so, for example, in case of ED25519 we have here SHAxxx-ED25519-SHA512.
632 … raise click.UsageError("Can not sign using key and provide fixed-signature at the same time")
635 # protected TLVs from the payload (will be re-added later)
704 e = STRUCT_ENDIAN_DICT[self.endian]
705 fmt = (e +
723 len(self.payload) - self.header_size, # ImageSz
762 padding = size - (len(self.payload) + tsize)
764 pbytes += bytearray([self.erased_val] * (tsize - len(self.boot_magic)))
769 image_ok_idx = -(magic_align_size + self.max_align)