Home
last modified time | relevance | path

Searched refs:num_words (Results 1 – 17 of 17) sorted by relevance

/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/src/
Decc.c87 void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) in uECC_vli_clear() argument
91 for (i = 0; i < num_words; ++i) { in uECC_vli_clear()
96 uECC_word_t uECC_vli_isZero(const uECC_word_t *vli, wordcount_t num_words) in uECC_vli_isZero() argument
101 for (i = 0; i < num_words; ++i) { in uECC_vli_isZero()
146 wordcount_t num_words) in uECC_vli_set() argument
150 for (i = 0; i < num_words; ++i) { in uECC_vli_set()
157 wordcount_t num_words) in uECC_vli_cmp_unsafe() argument
161 for (i = num_words - 1; i >= 0; --i) { in uECC_vli_cmp_unsafe()
173 wordcount_t num_words) in uECC_vli_equal() argument
178 for (i = num_words - 1; i >= 0; --i) { in uECC_vli_equal()
[all …]
Decc_dsa.c112 wordcount_t num_words = curve->num_words; in uECC_sign_with_k() local
117 if (uECC_vli_isZero(k, num_words) || in uECC_sign_with_k()
125 if (uECC_vli_isZero(p, num_words)) { in uECC_sign_with_k()
147 uECC_vli_set(s, p, num_words); in uECC_sign_with_k()
210 wordcount_t num_words = curve->num_words; in uECC_verify() local
216 uECC_vli_bytesToNative(_public + num_words, public_key + curve->num_bytes, in uECC_verify()
222 if (uECC_vli_isZero(r, num_words) || uECC_vli_isZero(s, num_words)) { in uECC_verify()
239 uECC_vli_set(sum, _public, num_words); in uECC_verify()
240 uECC_vli_set(sum + num_words, _public + num_words, num_words); in uECC_verify()
241 uECC_vli_set(tx, curve->G, num_words); in uECC_verify()
[all …]
Decc_dh.c89 _public + curve->num_words); in uECC_make_key_with_d()
127 _public + curve->num_words); in uECC_make_key()
146 wordcount_t num_words = curve->num_words; in uECC_shared_secret() local
156 uECC_vli_bytesToNative(_public + num_words, in uECC_shared_secret()
166 if (!uECC_generate_random_int(p2[carry], curve->p, num_words)) { in uECC_shared_secret()
/device/soc/esp/esp32/components/bootloader/subproject/components/micro-ecc/micro-ecc/
DuECC.c140 wordcount_t num_words; member
173 wordcount_t num_words);
207 uECC_VLI_API void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) { in uECC_vli_clear() argument
209 for (i = 0; i < num_words; ++i) { in uECC_vli_clear()
217 uECC_VLI_API uECC_word_t uECC_vli_isZero(const uECC_word_t *vli, wordcount_t num_words) { in uECC_vli_isZero() argument
220 for (i = 0; i < num_words; ++i) { in uECC_vli_isZero()
262 uECC_VLI_API void uECC_vli_set(uECC_word_t *dest, const uECC_word_t *src, wordcount_t num_words) { in uECC_vli_set() argument
264 for (i = 0; i < num_words; ++i) { in uECC_vli_set()
273 wordcount_t num_words) { in uECC_vli_cmp_unsafe() argument
275 for (i = num_words - 1; i >= 0; --i) { in uECC_vli_cmp_unsafe()
[all …]
DuECC_vli.h22 void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words);
26 uECC_word_t uECC_vli_isZero(const uECC_word_t *vli, wordcount_t num_words);
35 void uECC_vli_set(uECC_word_t *dest, const uECC_word_t *src, wordcount_t num_words);
41 wordcount_t num_words);
45 cmpresult_t uECC_vli_cmp(const uECC_word_t *left, const uECC_word_t *right, wordcount_t num_words);
48 void uECC_vli_rshift1(uECC_word_t *vli, wordcount_t num_words);
54 wordcount_t num_words);
60 wordcount_t num_words);
66 wordcount_t num_words);
69 void uECC_vli_square(uECC_word_t *result, const uECC_word_t *left, wordcount_t num_words);
[all …]
Dasm_arm.inc49 wordcount_t num_words) {
52 uint32_t jump = (uECC_MAX_WORDS - num_words) * 4 * 2 + 1;
54 uint32_t jump = (uECC_MAX_WORDS - num_words) * 4 * 4;
103 wordcount_t num_words) {
106 uint32_t jump = (uECC_MAX_WORDS - num_words) * 4 * 2 + 1;
108 uint32_t jump = (uECC_MAX_WORDS - num_words) * 4 * 4;
172 wordcount_t num_words) {
176 register uint32_t r3 __asm__("r3") = num_words;
219 wordcount_t num_words) {
222 register uint32_t r2 __asm__("r2") = num_words;
[all …]
Dasm_avr.inc30 uECC_VLI_API void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) {
44 : [num] "r" (num_words)
53 uECC_VLI_API void uECC_vli_set(uECC_word_t *dest, const uECC_word_t *src, wordcount_t num_words) {
69 : [num] "r" ((uint8_t)(num_words * 2))
78 uECC_VLI_API void uECC_vli_rshift1(uECC_word_t *vli, wordcount_t num_words) {
104 : [num] "r" (num_words), [jump] "r" ((uint8_t)(3 * (num_words - 1)))
107 : [num] "r" (num_words)
128 wordcount_t num_words) {
154 : [result] "r" (r), [num] "r" ((uint8_t)(num_words * 2))
175 wordcount_t num_words) {
[all …]
Dcurve-specific.inc57 wordcount_t num_words = curve->num_words;
59 if (uECC_vli_isZero(Z1, num_words)) {
69 uECC_vli_modAdd(X1, X1, Z1, curve->p, num_words); /* t1 = x1 + z1^2 */
70 uECC_vli_modAdd(Z1, Z1, Z1, curve->p, num_words); /* t3 = 2*z1^2 */
71 uECC_vli_modSub(Z1, X1, Z1, curve->p, num_words); /* t3 = x1 - z1^2 */
74 uECC_vli_modAdd(Z1, X1, X1, curve->p, num_words); /* t3 = 2*(x1^2 - z1^4) */
75 uECC_vli_modAdd(X1, X1, Z1, curve->p, num_words); /* t1 = 3*(x1^2 - z1^4) */
77 uECC_word_t l_carry = uECC_vli_add(X1, X1, curve->p, num_words);
78 uECC_vli_rshift1(X1, num_words);
79 X1[num_words - 1] |= l_carry << (uECC_WORD_BITS - 1);
[all …]
/device/soc/esp/esp32/components/bootloader/subproject/components/micro-ecc/
DuECC_verify_antifault.c39 wordcount_t num_words = curve->num_words; in uECC_verify_antifault() local
52 _public + num_words, public_key + curve->num_bytes, curve->num_bytes); in uECC_verify_antifault()
58 if (uECC_vli_isZero(r, num_words) || uECC_vli_isZero(s, num_words)) { in uECC_verify_antifault()
76 uECC_vli_set(sum, _public, num_words); in uECC_verify_antifault()
77 uECC_vli_set(sum + num_words, _public + num_words, num_words); in uECC_verify_antifault()
78 uECC_vli_set(tx, curve->G, num_words); in uECC_verify_antifault()
79 uECC_vli_set(ty, curve->G + num_words, num_words); in uECC_verify_antifault()
80 uECC_vli_modSub(z, sum, tx, curve->p, num_words); /* z = x2 - x1 */ in uECC_verify_antifault()
81 XYcZ_add(tx, ty, sum, sum + num_words, curve); in uECC_verify_antifault()
82 uECC_vli_modInv(z, z, curve->p, num_words); /* z = 1/z */ in uECC_verify_antifault()
[all …]
/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/include/tinycrypt/
Decc.h113 wordcount_t num_words; member
206 wordcount_t num_words);
311 uECC_word_t uECC_vli_isZero(const uECC_word_t *vli, wordcount_t num_words);
329 wordcount_t num_words);
340 wordcount_t num_words);
354 wordcount_t num_words);
398 const uECC_word_t *mod, wordcount_t num_words);
420 const uECC_word_t *right, wordcount_t num_words);
430 wordcount_t num_words);
442 wordcount_t num_words);
[all …]
/device/soc/esp/esp32/components/esp32/
Ddport_access.c222 …id IRAM_ATTR esp_dport_access_read_buffer(uint32_t *buff_out, uint32_t address, uint32_t num_words) in esp_dport_access_read_buffer() argument
225 for (uint32_t i = 0; i < num_words; ++i) { in esp_dport_access_read_buffer()
/device/soc/esp/esp32/components/esp32/include/esp32/
Ddport_access.h32 void esp_dport_access_read_buffer(uint32_t *buff_out, uint32_t address, uint32_t num_words);
/device/soc/esp/esp32/components/hal/esp32/include/hal/
Dspi_flash_ll.h181 int num_words = (length + 3) >> 2; in spi_flash_ll_set_buffer_data() local
182 for (int i = 0; i < num_words; i++) { in spi_flash_ll_set_buffer_data()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/
Ddhd_msgbuf.c759 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in dhd_prot_d2h_sync_seqnum() local
760 volatile uint32 *marker = (volatile uint32 *)msg + (num_words - 1); /* last word */ in dhd_prot_d2h_sync_seqnum()
831 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in dhd_prot_d2h_sync_xorcsum() local
862 prot_checksum = bcm_compute_xor32((volatile uint32 *)msg, num_words); in dhd_prot_d2h_sync_xorcsum()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Ddhd_msgbuf.c936 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in dhd_prot_d2h_sync_seqnum() local
938 (volatile uint32 *)msg + (num_words - 1); /* last word */ in dhd_prot_d2h_sync_seqnum()
1021 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in dhd_prot_d2h_sync_xorcsum() local
1059 bcm_compute_xor32((volatile uint32 *)msg, num_words); in dhd_prot_d2h_sync_xorcsum()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Ddhd_msgbuf.c917 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in dhd_prot_d2h_sync_seqnum() local
918 volatile uint32 *marker = (volatile uint32 *)msg + (num_words - 1); /* last word */ in dhd_prot_d2h_sync_seqnum()
996 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in dhd_prot_d2h_sync_xorcsum() local
1034 num_words); in dhd_prot_d2h_sync_xorcsum()
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Ddhd_msgbuf.c1244 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in BCMFASTPATH() local
1245 volatile uint32 *marker = (volatile uint32 *)msg + (num_words - 1); /* last word */ in BCMFASTPATH()
1323 int num_words = msglen / sizeof(uint32); /* num of 32bit words */ in BCMFASTPATH() local
1361 num_words); in BCMFASTPATH()