/mcuboot-latest/ext/mbedtls-asn1/src/ |
D | asn1parse.c | 45 int mbedtls_asn1_get_len( unsigned char **p, in mbedtls_asn1_get_len() argument 49 if( ( end - *p ) < 1 ) in mbedtls_asn1_get_len() 52 if( ( **p & 0x80 ) == 0 ) in mbedtls_asn1_get_len() 53 *len = *(*p)++; in mbedtls_asn1_get_len() 56 switch( **p & 0x7F ) in mbedtls_asn1_get_len() 59 if( ( end - *p ) < 2 ) in mbedtls_asn1_get_len() 62 *len = (*p)[1]; in mbedtls_asn1_get_len() 63 (*p) += 2; in mbedtls_asn1_get_len() 67 if( ( end - *p ) < 3 ) in mbedtls_asn1_get_len() 70 *len = ( (size_t)(*p)[1] << 8 ) | (*p)[2]; in mbedtls_asn1_get_len() [all …]
|
/mcuboot-latest/ext/mbedtls-asn1/include/mbedtls/ |
D | asn1.h | 128 memcmp( (oid_str), (oid_buf)->p, (oid_buf)->len) != 0 ) 150 unsigned char *MBEDTLS_PRIVATE(p); /**< ASN1 data, e.g. in ASCII. */ 161 unsigned char *MBEDTLS_PRIVATE(p); /**< Raw ASN1 data for the bit string */ 205 int mbedtls_asn1_get_len( unsigned char **p, 230 int mbedtls_asn1_get_tag( unsigned char **p, 249 int mbedtls_asn1_get_bool( unsigned char **p, 270 int mbedtls_asn1_get_int( unsigned char **p, 291 int mbedtls_asn1_get_enum( unsigned char **p, 312 int mbedtls_asn1_get_bitstring( unsigned char **p, const unsigned char *end, 333 int mbedtls_asn1_get_bitstring_null( unsigned char **p, [all …]
|
D | pk.h | 833 int mbedtls_pk_parse_subpubkey( unsigned char **p, const unsigned char *end, 848 int mbedtls_pk_write_pubkey( unsigned char **p, unsigned char *start,
|
D | bignum.h | 185 mbedtls_mpi_uint *MBEDTLS_PRIVATE(p); /*!< pointer to limbs */ 474 int mbedtls_mpi_write_file( const char *p, const mbedtls_mpi *X,
|
/mcuboot-latest/boot/bootutil/include/bootutil/crypto/ |
D | rsa.h | 119 bootutil_rsa_parse_private_key(bootutil_rsa_context *ctx, uint8_t **p, uint8_t *end) in bootutil_rsa_parse_private_key() argument 129 status = psa_import_key(&key_attributes, *p, (end - *p), &ctx->key_id); in bootutil_rsa_parse_private_key() 142 bootutil_rsa_parse_public_key(bootutil_rsa_context *ctx, uint8_t **p, uint8_t *end) in bootutil_rsa_parse_public_key() argument 152 status = psa_import_key(&key_attributes, *p, (end - *p), &ctx->key_id); in bootutil_rsa_parse_public_key() 222 bootutil_rsa_parse_private_key(bootutil_rsa_context *ctx, uint8_t **p, uint8_t *end) 226 if (mbedtls_asn1_get_tag(p, end, &len, 231 if (*p + len != end) { 237 mbedtls_asn1_get_int(p, end, &ctx->MBEDTLS_CONTEXT_MEMBER(ver)) != 0 || 239 mbedtls_asn1_get_mpi(p, end, &ctx->MBEDTLS_CONTEXT_MEMBER(N)) != 0 || 241 mbedtls_asn1_get_mpi(p, end, &ctx->MBEDTLS_CONTEXT_MEMBER(E)) != 0 || [all …]
|
D | ecdsa.h | 106 memcmp(alg.ASN1_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in bootutil_import_key() 111 memcmp(param.ASN1_CONTEXT_MEMBER(p), ec_secp256r1_oid, sizeof(ec_secp256r1_oid) - 1)) { in bootutil_import_key() 306 #define PUB_KEY_OID_OFFSET(p) (*p + PUB_KEY_LEN_OFF+1) argument 309 #define CURVE_TYPE_OID_OFFSET(p) PUB_KEY_OID_OFFSET(p) + sizeof(IdEcPublicKey) argument 321 static inline void get_public_key_from_rfc5280_encoding(uint8_t **p, size_t *size) in get_public_key_from_rfc5280_encoding() argument 323 uint8_t *key_start = (*p) + (PUB_KEY_LEN_OFF + 1 + (*p)[PUB_KEY_LEN_OFF] + PUB_KEY_VAL_OFF); in get_public_key_from_rfc5280_encoding() 324 *p = key_start; in get_public_key_from_rfc5280_encoding() 500 static int bootutil_parse_eckey(bootutil_ecdsa_context *ctx, uint8_t **p, uint8_t *end) in bootutil_parse_eckey() argument 506 if (mbedtls_asn1_get_tag(p, end, &len, in bootutil_parse_eckey() 510 end = *p + len; in bootutil_parse_eckey() [all …]
|
/mcuboot-latest/ext/fiat/src/ |
D | curve25519.c | 471 static void ge_p3_to_p2(ge_p2 *r, const ge_p3 *p) { in ge_p3_to_p2() argument 472 fe_copy(&r->X, &p->X); in ge_p3_to_p2() 473 fe_copy(&r->Y, &p->Y); in ge_p3_to_p2() 474 fe_copy(&r->Z, &p->Z); in ge_p3_to_p2() 478 void x25519_ge_p3_to_cached(ge_cached *r, const ge_p3 *p) { in x25519_ge_p3_to_cached() argument 479 fe_add(&r->YplusX, &p->Y, &p->X); in x25519_ge_p3_to_cached() 480 fe_sub(&r->YminusX, &p->Y, &p->X); in x25519_ge_p3_to_cached() 481 fe_copy_lt(&r->Z, &p->Z); in x25519_ge_p3_to_cached() 482 fe_mul_ltt(&r->T2d, &p->T, &d2); in x25519_ge_p3_to_cached() 486 void x25519_ge_p1p1_to_p2(ge_p2 *r, const ge_p1p1 *p) { in x25519_ge_p1p1_to_p2() argument [all …]
|
/mcuboot-latest/boot/bootutil/src/ |
D | encrypted.c | 103 parse_ec256_enckey(uint8_t **p, uint8_t *end, uint8_t *private_key) in parse_ec256_enckey() argument 111 if ((rc = mbedtls_asn1_get_tag(p, end, &len, in parse_ec256_enckey() 116 if (*p + len != end) { in parse_ec256_enckey() 121 if (mbedtls_asn1_get_int(p, end, &version) || version != 0) { in parse_ec256_enckey() 125 if ((rc = mbedtls_asn1_get_alg(p, end, &alg, ¶m)) != 0) { in parse_ec256_enckey() 130 memcmp(alg.ASN1_CONTEXT_MEMBER(p), ec_pubkey_oid, sizeof(ec_pubkey_oid) - 1)) { in parse_ec256_enckey() 134 memcmp(param.ASN1_CONTEXT_MEMBER(p), ec_secp256r1_oid, sizeof(ec_secp256r1_oid) - 1)) { in parse_ec256_enckey() 138 if ((rc = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_OCTET_STRING)) != 0) { in parse_ec256_enckey() 144 if ((rc = mbedtls_asn1_get_tag(p, end, &len, in parse_ec256_enckey() 150 if (mbedtls_asn1_get_int(p, end, &version) || version != 1) { in parse_ec256_enckey() [all …]
|
D | image_validate.c | 583 for (const uint16_t *p = allowed_unprot_tlvs; *p != IMAGE_TLV_ANY; p++) { in bootutil_img_validate() local 584 if (type == *p) { in bootutil_img_validate()
|
D | image_ed25519.c | 54 memcmp(alg.ASN1_CONTEXT_MEMBER(p), ed25519_pubkey_oid, sizeof(ed25519_pubkey_oid) - 1)) { in bootutil_import_key()
|
/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | ecc.c | 249 uECC_dword_t p = (uECC_dword_t)a * b; in muladd() local 251 r01 += p; in muladd() 252 *r2 += (r01 < p); in muladd() 473 uECC_vli_modAdd(X1, X1, Z1, curve->p, num_words); /* t1 = x1 + z1^2 */ in double_jacobian_default() 474 uECC_vli_modAdd(Z1, Z1, Z1, curve->p, num_words); /* t3 = 2*z1^2 */ in double_jacobian_default() 475 uECC_vli_modSub(Z1, X1, Z1, curve->p, num_words); /* t3 = x1 - z1^2 */ in double_jacobian_default() 478 uECC_vli_modAdd(Z1, X1, X1, curve->p, num_words); /* t3 = 2*(x1^2 - z1^4) */ in double_jacobian_default() 479 uECC_vli_modAdd(X1, X1, Z1, curve->p, num_words); /* t1 = 3*(x1^2 - z1^4) */ in double_jacobian_default() 481 uECC_word_t l_carry = uECC_vli_add(X1, X1, curve->p, num_words); in double_jacobian_default() 490 uECC_vli_modSub(Z1, Z1, t5, curve->p, num_words); /* t3 = B^2 - A */ in double_jacobian_default() [all …]
|
D | cbc_mode.c | 83 const uint8_t *p; in tc_cbc_mode_decrypt() local 103 p = iv; in tc_cbc_mode_decrypt() 110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
|
D | ecc_dsa.c | 107 uECC_word_t p[NUM_ECC_WORDS * 2]; in uECC_sign_with_k() local 120 EccPoint_mult(p, curve->G, k2[!carry], 0, num_n_bits + 1, curve); in uECC_sign_with_k() 121 if (uECC_vli_isZero(p, num_words)) { in uECC_sign_with_k() 141 uECC_vli_nativeToBytes(signature, curve->num_bytes, p); /* store r */ in uECC_sign_with_k() 147 uECC_vli_set(s, p, num_words); in uECC_sign_with_k() 248 uECC_vli_modSub(z, sum, tx, curve->p, num_words); /* z = x2 - x1 */ in uECC_verify() 250 uECC_vli_modInv(z, z, curve->p, num_words); /* z = 1/z */ in uECC_verify() 278 uECC_vli_modSub(tz, rx, tx, curve->p, num_words); /* Z = x2 - x1 */ in uECC_verify() 284 uECC_vli_modInv(z, z, curve->p, num_words); /* Z = 1/Z */ in uECC_verify()
|
D | ecc_dh.c | 177 if (!uECC_generate_random_int(p2[carry], curve->p, num_words)) { in uECC_shared_secret()
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_cbc_mode.c | 110 uint8_t *p; in test_1_and_2() local 134 p = &encrypted[TC_AES_BLOCK_SIZE]; in test_1_and_2() 137 if (tc_cbc_mode_decrypt(decrypted, length - TC_AES_BLOCK_SIZE, p, length, in test_1_and_2()
|
D | test_ctr_prng.c | 60 uint8_t *p; in hexStringToBytes() local 65 for(i=0, p = (uint8_t *) inhex; i<len; i++) { in hexStringToBytes() 66 retval[i] = (nibbleFromChar(*p) << 4) | nibbleFromChar(*(p+1)); in hexStringToBytes() 67 p += 2; in hexStringToBytes()
|
/mcuboot-latest/sim/mcuboot-sys/csupport/ |
D | run.c | 60 parse_pubkey(mbedtls_rsa_context *ctx, uint8_t **p, uint8_t *end) in parse_pubkey() argument 65 if ((rc = mbedtls_asn1_get_tag(p, end, &len, in parse_pubkey() 70 if (*p + len != end) { in parse_pubkey() 74 if ((rc = mbedtls_asn1_get_tag(p, end, &len, in parse_pubkey() 79 *p += len; in parse_pubkey() 81 if ((rc = mbedtls_asn1_get_tag(p, end, &len, MBEDTLS_ASN1_BIT_STRING)) != 0) { in parse_pubkey() 85 if (**p != MBEDTLS_ASN1_PRIMITIVE) { in parse_pubkey() 89 *p += 1; in parse_pubkey() 91 if ((rc = mbedtls_asn1_get_tag(p, end, &len, in parse_pubkey() 96 if (mbedtls_asn1_get_mpi(p, end, &ctx->MBEDTLS_CONTEXT_MEMBER(N)) != 0) { in parse_pubkey() [all …]
|
/mcuboot-latest/sim/mcuboot-sys/ |
D | build.rs | 499 let p = ent.path(); in walk_dir() localVariable 500 if p.is_dir() { in walk_dir() 501 walk_dir(p)?; in walk_dir() 504 let name = p.to_str().unwrap(); in walk_dir() 531 fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut CachedBuild { in file() 532 let p = p.as_ref(); in file() localVariable 533 if !self.seen.contains(p) { in file() 534 self.conf.file(p); in file() 535 self.seen.insert(p.to_owned()); in file()
|
/mcuboot-latest/samples/runtime-source/zephyr/ |
D | README.md | 15 west build -p -b frdm_k64f ../../../boot/zephyr/ -- \ 26 west build -p -b frdm_k64f .
|
/mcuboot-latest/ci/ |
D | check-signed-off-by.sh | 21 parents=(`git log -n 1 --format=%p HEAD`)
|
/mcuboot-latest/samples/compression_test/ |
D | README.txt | 20 west build -b nrf54l15dk/nrf54l15/cpuapp -p
|
/mcuboot-latest/ci/fih_test_docker/docker-build/ |
D | Dockerfile | 41 RUN mkdir -p /root/work/tfm &&\
|
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/ |
D | ecc.h | 116 uECC_word_t p[NUM_ECC_WORDS]; member
|
/mcuboot-latest/docs/ |
D | readme-espressif.md | 133 …esptool.py -p <PORT> -b <BAUD> --before default_reset --after no_reset --chip <TARGET> write_flash… 146 esptool.py -p <PORT> -b <BAUD> flash_id 196 …esptool.py -p <PORT> -b <BAUD> --before default_reset --after hard_reset --chip <TARGET> write_fl… 405 esptool.py -p <PORT> -b 2000000 --after no_reset --chip <ESP_CHIP> write_flash --flash_mode dio --f… 542 esptool.py -p <PORT> -b 2000000 --after no_reset --chip <ESP_CHIP> write_flash --flash_mode dio --f… 546 esptool.py -p <PORT> -b 2000000 --after no_reset --chip <ESP_CHIP> write_flash --flash_mode dio --f… 601 esptool.py -p <PORT> -b 2000000 --after no_reset --chip <ESP_CHIP> write_flash --flash_mode dio --f… 605 esptool.py -p <PORT> -b 2000000 --after no_reset --chip <ESP_CHIP> write_flash --flash_mode dio --f…
|
/mcuboot-latest/boot/cypress/MCUBootApp/ |
D | ExternalMemory.md | 100 **Note 3:** the programming of external memory is limited to S25FL512S p/n only at this moment.
|