/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | ccm_mode.c | 154 uint8_t b[Nb * Nk]; in tc_ccm_generation_encryption() local 161 b[0] = ((alen > 0) ? 0x40:0) | (((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_generation_encryption() 163 b[i] = c->nonce[i - 1]; in tc_ccm_generation_encryption() 165 b[14] = (uint8_t)(plen >> 8); in tc_ccm_generation_encryption() 166 b[15] = (uint8_t)(plen); in tc_ccm_generation_encryption() 169 (void) tc_aes_encrypt(tag, b, c->sched); in tc_ccm_generation_encryption() 180 b[0] = 1; /* q - 1 = 2 - 1 = 1 */ in tc_ccm_generation_encryption() 181 b[14] = b[15] = TC_ZERO_BYTE; in tc_ccm_generation_encryption() 184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption() 186 b[14] = b[15] = TC_ZERO_BYTE; /* restoring initial counter for ctr_mode (0):*/ in tc_ccm_generation_encryption() [all …]
|
D | sha256.c | 167 #define Ch(a, b, c)(((a) & (b)) ^ ((~(a)) & (c))) argument 168 #define Maj(a, b, c)(((a) & (b)) ^ ((a) & (c)) ^ ((b) & (c))) argument 183 unsigned int a, b, c, d, e, f, g, h; in compress() local 190 a = iv[0]; b = iv[1]; c = iv[2]; d = iv[3]; in compress() 197 t2 = Sigma0(a) + Maj(a, b, c); in compress() 199 d = c; c = b; b = a; a = t1 + t2; in compress() 210 t2 = Sigma0(a) + Maj(a, b, c); in compress() 212 d = c; c = b; b = a; a = t1 + t2; in compress() 215 iv[0] += a; iv[1] += b; iv[2] += c; iv[3] += d; in compress()
|
D | utils.c | 64 int _compare(const uint8_t *a, const uint8_t *b, size_t size) in _compare() argument 67 const uint8_t *tempb = b; in _compare()
|
D | ecc.c | 245 static void muladd(uECC_word_t a, uECC_word_t b, uECC_word_t *r0, in muladd() argument 249 uECC_dword_t p = (uECC_dword_t)a * b; in muladd() 411 uECC_word_t a[NUM_ECC_WORDS], b[NUM_ECC_WORDS]; in uECC_vli_modInv() local 421 uECC_vli_set(b, mod, num_words); in uECC_vli_modInv() 425 while ((cmpResult = uECC_vli_cmp_unsafe(a, b, num_words)) != 0) { in uECC_vli_modInv() 429 } else if (EVEN(b)) { in uECC_vli_modInv() 430 uECC_vli_rshift1(b, num_words); in uECC_vli_modInv() 433 uECC_vli_sub(a, a, b, num_words); in uECC_vli_modInv() 441 uECC_vli_sub(b, b, a, num_words); in uECC_vli_modInv() 442 uECC_vli_rshift1(b, num_words); in uECC_vli_modInv() [all …]
|
/mcuboot-latest/scripts/imgtool/keys/ |
D | rsa.py | 115 b = bytearray(der) 117 if b[off + 1] != 0x82: 119 len_N = (b[off + 2] << 8) + b[off + 3] + 4 121 if b[off + 1] != 0x03: 123 len_E = b[off + 2] + 4 125 if b[off + 1] != 0x82: 127 len_D = (b[off + 2] << 8) + b[off + 3] + 4 129 if b[off + 1] != 0x81: 131 len_P = b[off + 2] + 3 133 if b[off + 1] != 0x81: [all …]
|
D | ecdsa.py | 89 b = bytearray(der[:offset_PUB]) # remove the TLV with the PUB key 91 if b[offset_SEQ] != 0x30: 93 b[offset_SEQ + 1] -= len_PUB 95 if b[offset_OCT_STR] != 0x04: 97 b[offset_OCT_STR + 1] -= len_PUB 98 if b[0] != 0x30 or b[1] != 0x81: 101 b[2] -= len_PUB 102 if b[2] < 0x80: 103 del(b[1]) 110 b = bytearray(der[0:offset_PUB]) [all …]
|
D | ecdsa_test.py | 35 k.export_private(name1, b'secret') 39 k2 = load(name1, b'secret') 102 buf = b'This is the message' 116 data=b'This is thE message',
|
D | ed25519_test.py | 36 k.export_private(name1, b'secret') 40 k2 = load(name1, b'secret') 103 buf = b'This is the message' 115 sha.update(b'This is thE message')
|
D | rsa_test.py | 44 k.export_private(name1, b'secret') 49 k2 = load(name1, b'secret') 115 buf = b'This is the message' 130 data=b'This is thE message',
|
/mcuboot-latest/samples/zephyr/ |
D | test-compile.go | 87 func (b *Builds) Close() error { 88 return b.zip.Close() 91 func (b *Builds) Capture(testName string) error { 106 _, err = b.zip.CreateHeader(header) 116 err = b.add(testName, name, name) 125 func (b *Builds) add(baseName, zipName, fileName string) error { 145 wr, err := b.zip.CreateHeader(header)
|
/mcuboot-latest/ext/tinycrypt-sha512/lib/source/ |
D | sha512.c | 180 #define Ch(a, b, c)(((a) & (b)) ^ ((~(a)) & (c))) argument 181 #define Maj(a, b, c)(((a) & (b)) ^ ((a) & (c)) ^ ((b) & (c))) argument 200 uint64_t a, b, c, d, e, f, g, h; in compress() local 207 a = iv[0]; b = iv[1]; c = iv[2]; d = iv[3]; in compress() 214 t2 = Sigma0(a) + Maj(a, b, c); in compress() 216 d = c; c = b; b = a; a = t1 + t2; in compress() 227 t2 = Sigma0(a) + Maj(a, b, c); in compress() 229 d = c; c = b; b = a; a = t1 + t2; in compress() 232 iv[0] += a; iv[1] += b; iv[2] += c; iv[3] += d; in compress()
|
/mcuboot-latest/scripts/imgtool/ |
D | dumpinfo.py | 134 b = f.read() 139 _header = struct.unpack('IIHHIIBBHI', b[:28]) 160 b[tlv_off:(tlv_off + image.TLV_INFO_SIZE)]) 170 b[tlv_off:(tlv_off + image.TLV_INFO_SIZE)]) 172 tlv_data = b[tlv_off:(tlv_off + tlv_len)] 177 _tlv_head = struct.unpack('HH', b[tlv_off:(tlv_off + image.TLV_INFO_SIZE)]) 188 b[tlv_off:(tlv_off + image.TLV_INFO_SIZE)]) 190 tlv_data = b[tlv_off:(tlv_off + tlv_len)] 195 _img_pad_size = len(b) - tlv_end 200 trailer_magic = b[trailer_off:] [all …]
|
D | image.py | 428 info=b'MCUBoot_ECIES_v1', backend=default_backend()).derive(shared) 778 b = IntelHex(imgfile).tobinstr() 781 b = f.read() 785 magic, _, header_size, _, img_size = struct.unpack('IIHHI', b[:16]) 786 version = struct.unpack('BBHI', b[20:28]) 792 tlv_info = b[tlv_off:tlv_off + TLV_INFO_SIZE] 796 tlv_info = b[tlv_off:tlv_off + TLV_INFO_SIZE] 803 hash_region = b[:prot_tlv_size] 808 tlv = b[tlv_off:tlv_off + TLV_SIZE] 815 if digest == b[off:off + tlv_len]: [all …]
|
/mcuboot-latest/boot/cypress/platforms/PSOC_062_2M/CM0P/GCC_ARM/ |
D | startup_psoc6_02_cm0plus.S | 185 b .L_loop0_0 189 b .L_loop0 250 b .L_loop2_0 254 b .L_loop2 293 b . 303 b . 309 b . 321 b .L_API_call 328 b .
|
/mcuboot-latest/boot/zcbor/include/ |
D | zcbor_common.h | 66 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) argument 70 #define MAX(a, b) (((a) < (b)) ? (b) : (a)) argument
|
/mcuboot-latest/docs/ |
D | release.md | 36 release candidate (a.b.c-rc1, followed by a.b.c-rc2 and the subsequent 37 release candidates, followed by the official a.b.c release). The intent 85 change, with a commit text similar to "Bump to version a.b.c". 93 git tag -s va.b.c-rcn 103 git push origin va.b.c-rcn 108 After the final (non-`rc`) a.b.0 release is made, a new branch must 112 git checkout va.b.c 113 git checkout -b va.b-branch 114 git push origin va.b-branch
|
/mcuboot-latest/scripts/ |
D | assemble.py | 32 def same_keys(a, b): argument 35 if ak not in b: 37 for bk in b.keys(): 90 buf = b'\xFF' * (self.offsets[partition] - pos)
|
D | gdb-boot.sh | 16 b main
|
/mcuboot-latest/ext/mbedtls-asn1/include/mbedtls/ |
D | bignum.h | 691 mbedtls_mpi_sint b ); 706 mbedtls_mpi_sint b ); 737 mbedtls_mpi_uint b ); 779 mbedtls_mpi_sint b ); 818 mbedtls_mpi_sint b );
|
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/ |
D | utils.h | 89 int _compare(const uint8_t *a, const uint8_t *b, size_t size);
|
D | ecc.h | 119 uECC_word_t b[NUM_ECC_WORDS]; member 154 #define BYTES_TO_WORDS_8(a, b, c, d, e, f, g, h) 0x##d##c##b##a, 0x##h##g##f##e argument 155 #define BYTES_TO_WORDS_4(a, b, c, d) 0x##d##c##b##a argument
|
/mcuboot-latest/ext/fiat/src/ |
D | curve25519.c | 306 const uint8_t *b = in_b; in CRYPTO_memcmp() local 310 x |= a[i] ^ b[i]; in CRYPTO_memcmp() 598 int b; in slide() local 607 for (b = 1; b <= 6 && i + b < 256; ++b) { in slide() 608 if (r[i + b]) { in slide() 609 if (r[i] + (r[i + b] << b) <= 15) { in slide() 610 r[i] += r[i + b] << b; in slide() 611 r[i + b] = 0; in slide() 612 } else if (r[i] - (r[i + b] << b) >= -15) { in slide() 613 r[i] -= r[i + b] << b; in slide() [all …]
|
/mcuboot-latest/ci/fih_test_docker/ |
D | fi_tester_gdb.sh | 46 b boot_go_for_image_id if image_id == 0 49 b *$SKIP_ADDRESS
|
/mcuboot-latest/boot/bootutil/src/ |
D | bootutil_priv.h | 328 static inline bool boot_u32_safe_add(uint32_t *dest, uint32_t a, uint32_t b) in boot_u32_safe_add() argument 334 if (a > UINT32_MAX - b) { in boot_u32_safe_add() 337 *dest = a + b; in boot_u32_safe_add() 347 static inline bool boot_u16_safe_add(uint16_t *dest, uint16_t a, uint16_t b) in boot_u16_safe_add() argument 349 uint32_t tmp = a + b; in boot_u16_safe_add()
|
/mcuboot-latest/boot/cypress/platforms/PSOC_062_2M/CM4/GCC_ARM/ |
D | startup_psoc6_02_cm4.S | 351 b .L_loop0 411 b .L_loop2 459 b . 470 b . 478 b . 490 b .L_API_call 497 b .
|