/mcuboot-latest/ext/tinycrypt/lib/source/ |
D | ecc_dsa.c | 67 unsigned bits_size, uECC_Curve curve) in bits2int() argument 69 unsigned num_n_bytes = BITS_TO_BYTES(curve->num_n_bits); in bits2int() 70 unsigned num_n_words = BITS_TO_WORDS(curve->num_n_bits); in bits2int() 81 if (bits_size * 8 <= (unsigned)curve->num_n_bits) { in bits2int() 84 shift = bits_size * 8 - curve->num_n_bits; in bits2int() 94 if (uECC_vli_cmp_unsafe(curve->n, native, num_n_words) != 1) { in bits2int() 95 uECC_vli_sub(native, native, curve->n, num_n_words); in bits2int() 101 uECC_Curve curve) in uECC_sign_with_k() argument 109 wordcount_t num_words = curve->num_words; in uECC_sign_with_k() 110 wordcount_t num_n_words = BITS_TO_WORDS(curve->num_n_bits); in uECC_sign_with_k() [all …]
|
D | ecc_dh.c | 69 unsigned int *d, uECC_Curve curve) in uECC_make_key_with_d() argument 81 if (EccPoint_compute_public_key(_public, _private, curve)) { in uECC_make_key_with_d() 85 BITS_TO_BYTES(curve->num_n_bits), in uECC_make_key_with_d() 88 curve->num_bytes, in uECC_make_key_with_d() 90 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key_with_d() 91 curve->num_bytes, in uECC_make_key_with_d() 92 _public + curve->num_words); in uECC_make_key_with_d() 102 int uECC_make_key(uint8_t *public_key, uint8_t *private_key, uECC_Curve curve) in uECC_make_key() argument 119 uECC_vli_mmod(_private, _random, curve->n, BITS_TO_WORDS(curve->num_n_bits)); in uECC_make_key() 122 if (EccPoint_compute_public_key(_public, _private, curve)) { in uECC_make_key() [all …]
|
D | ecc.c | 77 int uECC_curve_private_key_size(uECC_Curve curve) in uECC_curve_private_key_size() argument 79 return BITS_TO_BYTES(curve->num_n_bits); in uECC_curve_private_key_size() 82 int uECC_curve_public_key_size(uECC_Curve curve) in uECC_curve_public_key_size() argument 84 return 2 * curve->num_bytes; in uECC_curve_public_key_size() 374 const uECC_word_t *right, uECC_Curve curve) in uECC_vli_modMult_fast() argument 377 uECC_vli_mult(product, left, right, curve->num_words); in uECC_vli_modMult_fast() 379 curve->mmod_fast(result, product); in uECC_vli_modMult_fast() 384 uECC_Curve curve) in uECC_vli_modSquare_fast() argument 386 uECC_vli_modMult_fast(result, left, left, curve); in uECC_vli_modSquare_fast() 456 uECC_word_t * Z1, uECC_Curve curve) in double_jacobian_default() argument [all …]
|
/mcuboot-latest/scripts/imgtool/keys/ |
D | __init__.py | 79 if pk.curve.name not in ('secp256r1', 'secp384r1'): 80 raise Exception("Unsupported EC curve: " + pk.curve.name) 83 if pk.curve.name == 'secp256r1': 85 elif pk.curve.name == 'secp384r1': 88 if pk.curve.name not in ('secp256r1', 'secp384r1'): 89 raise Exception("Unsupported EC curve: " + pk.curve.name) 92 if pk.curve.name == 'secp256r1': 94 elif pk.curve.name == 'secp384r1':
|
/mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/ |
D | ecc_dh.h | 94 int uECC_make_key(uint8_t *p_public_key, uint8_t *p_private_key, uECC_Curve curve); 105 unsigned int *d, uECC_Curve curve); 125 uint8_t *p_secret, uECC_Curve curve);
|
D | ecc.h | 121 uECC_Curve curve); 122 void (*x_side)(uECC_word_t *result, const uECC_word_t *x, uECC_Curve curve); 134 uECC_word_t * Z1, uECC_Curve curve); 143 uECC_Curve curve); 250 int uECC_curve_private_key_size(uECC_Curve curve); 257 int uECC_curve_public_key_size(uECC_Curve curve); 267 uint8_t *public_key, uECC_Curve curve); 277 uECC_word_t *private_key, uECC_Curve curve); 289 uECC_word_t *k1, uECC_Curve curve); 304 bitcount_t num_bits, uECC_Curve curve); [all …]
|
D | ecc_dsa.h | 106 unsigned p_hash_size, uint8_t *p_signature, uECC_Curve curve); 115 uECC_Curve curve); 133 unsigned int p_hash_size, const uint8_t *p_signature, uECC_Curve curve);
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_ecc_dh.c | 83 const struct uECC_Curve_t * curve = uECC_secp256r1(); in ecdh_vectors() local 99 rc = uECC_shared_secret(pub_bytes, private_bytes, z_bytes, curve); in ecdh_vectors() 317 const struct uECC_Curve_t * curve = uECC_secp256r1(); in pkv_vectors() local 338 rc = uECC_valid_public_key(_public, curve); in pkv_vectors() 425 const struct uECC_Curve_t * curve = uECC_secp256r1(); in montecarlo_ecdh() local 436 if (!uECC_make_key(public1, private1, curve) || in montecarlo_ecdh() 437 !uECC_make_key(public2, private2, curve)) { in montecarlo_ecdh() 443 if (!uECC_shared_secret(public2, private1, secret1, curve)) { in montecarlo_ecdh() 449 if (!uECC_shared_secret(public1, private2, secret2, curve)) { in montecarlo_ecdh()
|
D | test_ecc_dsa.c | 347 const struct uECC_Curve_t * curve = uECC_secp256r1(); in vrfy_vectors() local 405 if (0 != uECC_valid_public_key(pub_bytes, curve)) { in vrfy_vectors() 601 const struct uECC_Curve_t * curve = uECC_secp256r1(); in montecarlo_signverify() local 609 uECC_generate_random_int(hash_words, curve->n, BITS_TO_WORDS(curve->num_n_bits)); in montecarlo_signverify() 612 if (!uECC_make_key(public, private, curve)) { in montecarlo_signverify() 617 if (!uECC_sign(private, hash, sizeof(hash), sig, curve)) { in montecarlo_signverify() 622 if (!uECC_verify(public, hash, sizeof(hash), sig, curve)) { in montecarlo_signverify()
|
/mcuboot-latest/ext/tinycrypt/documentation/ |
D | tinycrypt.rst | 75 * Type of primitive: Key exchange based on curve NIST p-256. 81 * Type of primitive: Digital signature based on curve NIST p-256.
|
/mcuboot-latest/boot/zephyr/ |
D | Kconfig | 181 bool "Elliptic curve digital signatures with curve P-256" 205 bool "Edwards curve digital signatures using ed25519"
|
/mcuboot-latest/docs/ |
D | release-notes.md | 86 - Make the ECDSA256 TLV curve agnostic and rename it to ECDSA_SIG. 537 - Elliptic curve DSA with secp224r1 and secp256r1
|