Searched refs:num_bytes (Results 1 – 6 of 6) sorted by relevance
/mcuboot-2.7.6/ext/tinycrypt/lib/source/ |
D | ecc_dh.c | 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() 129 curve->num_bytes, in uECC_make_key() 131 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key() 132 curve->num_bytes, in uECC_make_key() 156 wordcount_t num_bytes = curve->num_bytes; in uECC_shared_secret() local 165 num_bytes); in uECC_shared_secret() 167 public_key + num_bytes, in uECC_shared_secret() 168 num_bytes); in uECC_shared_secret() [all …]
|
D | ecc_dsa.c | 141 uECC_vli_nativeToBytes(signature, curve->num_bytes, p); /* store r */ in uECC_sign_with_k() 153 if (uECC_vli_numBits(s, num_n_words) > (bitcount_t)curve->num_bytes * 8) { in uECC_sign_with_k() 157 uECC_vli_nativeToBytes(signature + curve->num_bytes, curve->num_bytes, s); in uECC_sign_with_k() 219 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_verify() 220 uECC_vli_bytesToNative(_public + num_words, public_key + curve->num_bytes, in uECC_verify() 221 curve->num_bytes); in uECC_verify() 222 uECC_vli_bytesToNative(r, signature, curve->num_bytes); in uECC_verify() 223 uECC_vli_bytesToNative(s, signature + curve->num_bytes, curve->num_bytes); in uECC_verify()
|
D | ecc.c | 84 return 2 * curve->num_bytes; in uECC_curve_public_key_size() 814 void uECC_vli_nativeToBytes(uint8_t *bytes, int num_bytes, in uECC_vli_nativeToBytes() argument 818 for (i = 0; i < num_bytes; ++i) { in uECC_vli_nativeToBytes() 819 unsigned b = num_bytes - 1 - i; in uECC_vli_nativeToBytes() 826 int num_bytes) in uECC_vli_bytesToNative() argument 829 uECC_vli_clear(native, (num_bytes + (uECC_WORD_SIZE - 1)) / uECC_WORD_SIZE); in uECC_vli_bytesToNative() 830 for (i = 0; i < num_bytes; ++i) { in uECC_vli_bytesToNative() 831 unsigned b = num_bytes - 1 - i; in uECC_vli_bytesToNative() 895 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_valid_public_key() 898 public_key + curve->num_bytes, in uECC_valid_public_key() [all …]
|
/mcuboot-2.7.6/boot/zephyr/include/hal/ |
D | hal_flash.h | 30 uint32_t num_bytes); 32 uint32_t num_bytes); 34 int hal_flash_erase(uint8_t flash_id, uint32_t address, uint32_t num_bytes);
|
/mcuboot-2.7.6/ext/tinycrypt/tests/ |
D | test_ecc_utils.c | 134 unsigned int num_bytes = 4 * num_word32; in string2scalar() local 135 uint8_t tmp[num_bytes]; in string2scalar() 140 if (0 > (padding = 2 * num_bytes - strlen(str))) in string2scalar() 143 2 * num_bytes, strlen(str)); in string2scalar() 149 if (false == hex2bin(tmp + padding / 2, num_bytes, str, hexlen)) in string2scalar() 153 uECC_vli_bytesToNative(scalar, tmp, num_bytes); in string2scalar() 189 uint32_t num_bytes = 4 * num_word32; in check_ecc_result() local 190 if (memcmp(computed, expected, num_bytes)) { in check_ecc_result()
|
/mcuboot-2.7.6/ext/tinycrypt/lib/include/tinycrypt/ |
D | ecc.h | 114 wordcount_t num_bytes; member 529 void uECC_vli_nativeToBytes(uint8_t *bytes, int num_bytes, 539 int num_bytes);
|