/mcuboot-latest/boot/bootutil/include/bootutil/crypto/ |
D | ecdh_p256.h | 48 …56_shared_secret(bootutil_ecdh_p256_context *ctx, const uint8_t *pk, const uint8_t *sk, uint8_t *z) in bootutil_ecdh_p256_shared_secret() argument 62 rc = uECC_shared_secret(&pk[1], sk, z, uECC_secp256r1()); in bootutil_ecdh_p256_shared_secret() 80 mbedtls_mpi z; member 86 mbedtls_mpi_init(&ctx->z); in bootutil_ecdh_p256_init() 101 mbedtls_mpi_free(&ctx->z); in bootutil_ecdh_p256_drop() 106 …56_shared_secret(bootutil_ecdh_p256_context *ctx, const uint8_t *pk, const uint8_t *sk, uint8_t *z) in bootutil_ecdh_p256_shared_secret() argument 131 &ctx->z, in bootutil_ecdh_p256_shared_secret() 138 &ctx->z, in bootutil_ecdh_p256_shared_secret() 144 mbedtls_mpi_write_binary(&ctx->z, z, NUM_ECC_BYTES); in bootutil_ecdh_p256_shared_secret()
|
D | ecdh_x25519.h | 39 …_shared_secret(bootutil_ecdh_x25519_context *ctx, const uint8_t *pk, const uint8_t *sk, uint8_t *z) in bootutil_ecdh_x25519_shared_secret() argument 44 rc = X25519(z, sk, pk); in bootutil_ecdh_x25519_shared_secret()
|
/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | ecc_dsa.c | 198 uECC_word_t z[NUM_ECC_WORDS]; in uECC_verify() local 237 uECC_vli_modInv(z, s, curve->n, num_n_words); /* z = 1/s */ in uECC_verify() 240 uECC_vli_modMult(u1, u1, z, curve->n, num_n_words); /* u1 = e/s */ in uECC_verify() 241 uECC_vli_modMult(u2, r, z, curve->n, num_n_words); /* u2 = r/s */ in uECC_verify() 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() 251 apply_z(sum, sum + num_words, z, curve); in uECC_verify() 265 uECC_vli_clear(z, num_words); in uECC_verify() 266 z[0] = 1; in uECC_verify() 270 curve->double_jacobian(rx, ry, z, curve); in uECC_verify() [all …]
|
D | ecc.c | 644 uECC_word_t z[NUM_ECC_WORDS]; in XYcZ_initial_double() local 647 uECC_vli_set(z, initial_Z, num_words); in XYcZ_initial_double() 649 uECC_vli_clear(z, num_words); in XYcZ_initial_double() 650 z[0] = 1; in XYcZ_initial_double() 656 apply_z(X1, Y1, z, curve); in XYcZ_initial_double() 657 curve->double_jacobian(X1, Y1, z, curve); in XYcZ_initial_double() 658 apply_z(X2, Y2, z, curve); in XYcZ_initial_double() 737 uECC_word_t z[NUM_ECC_WORDS]; in EccPoint_mult() local 757 uECC_vli_modSub(z, Rx[1], Rx[0], curve->p, num_words); /* X1 - X0 */ in EccPoint_mult() 758 uECC_vli_modMult_fast(z, z, Ry[1 - nb], curve); /* Yb * (X1 - X0) */ in EccPoint_mult() [all …]
|
/mcuboot-latest/ci/ |
D | fih-tests_run.sh | 55 …docker run --rm -v $(pwd):/root/work/tfm:rw,z mcuboot/fih-test:$FIH_IMAGE_VERSION /bin/sh -c '/roo… 57 …docker run --rm -v $(pwd):/root/work/tfm:rw,z mcuboot/fih-test:$FIH_IMAGE_VERSION /bin/sh -c '/roo…
|
/mcuboot-latest/samples/zephyr/ |
D | test-compile.go | 79 z := zip.NewWriter(file) 83 zip: z,
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_ecc_dh.c | 77 unsigned int z[NUM_ECC_WORDS]; in ecdh_vectors() local 107 uECC_vli_bytesToNative(z, z_bytes, NUM_ECC_BYTES); in ecdh_vectors() 109 result = check_ecc_result(i, "Z", exp_z, z, NUM_ECC_WORDS, verbose); in ecdh_vectors()
|
/mcuboot-latest/ext/mbedtls-asn1/include/mbedtls/ |
D | bignum.h | 324 int mbedtls_mpi_lset( mbedtls_mpi *X, mbedtls_mpi_sint z ); 620 int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z );
|
/mcuboot-latest/ext/fiat/src/ |
D | curve25519.c | 240 static void fe_loose_invert(fe *out, const fe_loose *z) { in fe_loose_invert() argument 247 fe_sq_tl(&t0, z); in fe_loose_invert() 252 fe_mul_tlt(&t1, z, &t1); in fe_loose_invert() 298 static void fe_invert(fe *out, const fe *z) { in fe_invert() argument 300 fe_copy_lt(&l, z); in fe_invert() 346 static void fe_pow22523(fe *out, const fe *z) { in fe_pow22523() argument 352 fe_sq_tt(&t0, z); in fe_pow22523() 357 fe_mul_ttt(&t1, z, &t1); in fe_pow22523() 400 fe_mul_ttt(out, &t0, z); in fe_pow22523()
|