Home
last modified time | relevance | path

Searched refs:uECC_word_t (Results 1 – 5 of 5) sorted by relevance

/tinycrypt-latest/lib/include/tinycrypt/
Decc.h94 typedef unsigned int uECC_word_t; typedef
116 uECC_word_t p[NUM_ECC_WORDS];
117 uECC_word_t n[NUM_ECC_WORDS];
118 uECC_word_t G[NUM_ECC_WORDS * 2];
119 uECC_word_t b[NUM_ECC_WORDS];
120 void (*double_jacobian)(uECC_word_t * X1, uECC_word_t * Y1, uECC_word_t * Z1,
122 void (*x_side)(uECC_word_t *result, const uECC_word_t *x, uECC_Curve curve);
123 void (*mmod_fast)(uECC_word_t *result, uECC_word_t *product);
133 void double_jacobian_default(uECC_word_t * X1, uECC_word_t * Y1,
134 uECC_word_t * Z1, uECC_Curve curve);
[all …]
Decc_dsa.h114 unsigned int hash_size, uECC_word_t *k, uint8_t *signature,
/tinycrypt-latest/lib/source/
Decc.c87 void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) in uECC_vli_clear()
95 uECC_word_t uECC_vli_isZero(const uECC_word_t *vli, wordcount_t num_words) in uECC_vli_isZero()
97 uECC_word_t bits = 0; in uECC_vli_isZero()
105 uECC_word_t uECC_vli_testBit(const uECC_word_t *vli, bitcount_t bit) in uECC_vli_testBit()
108 ((uECC_word_t)1 << (bit & uECC_WORD_BITS_MASK))); in uECC_vli_testBit()
112 static wordcount_t vli_numDigits(const uECC_word_t *vli, in vli_numDigits()
125 bitcount_t uECC_vli_numBits(const uECC_word_t *vli, in uECC_vli_numBits()
129 uECC_word_t i; in uECC_vli_numBits()
130 uECC_word_t digit; in uECC_vli_numBits()
145 void uECC_vli_set(uECC_word_t *dest, const uECC_word_t *src, in uECC_vli_set()
[all …]
Decc_dh.c73 uECC_word_t _private[NUM_ECC_WORDS]; in uECC_make_key_with_d()
74 uECC_word_t _public[NUM_ECC_WORDS * 2]; in uECC_make_key_with_d()
106 uECC_word_t _random[NUM_ECC_WORDS * 2]; in uECC_make_key()
107 uECC_word_t _private[NUM_ECC_WORDS]; in uECC_make_key()
108 uECC_word_t _public[NUM_ECC_WORDS * 2]; in uECC_make_key()
109 uECC_word_t tries; in uECC_make_key()
149 uECC_word_t _public[NUM_ECC_WORDS * 2]; in uECC_shared_secret()
150 uECC_word_t _private[NUM_ECC_WORDS]; in uECC_shared_secret()
152 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_shared_secret()
153 uECC_word_t *p2[2] = {_private, tmp}; in uECC_shared_secret()
[all …]
Decc_dsa.c66 static void bits2int(uECC_word_t *native, const uint8_t *bits, in bits2int()
72 uECC_word_t carry; in bits2int()
73 uECC_word_t *ptr; in bits2int()
88 uECC_word_t temp = *ptr; in bits2int()
100 unsigned hash_size, uECC_word_t *k, uint8_t *signature, in uECC_sign_with_k()
104 uECC_word_t tmp[NUM_ECC_WORDS]; in uECC_sign_with_k()
105 uECC_word_t s[NUM_ECC_WORDS]; in uECC_sign_with_k()
106 uECC_word_t *k2[2] = {tmp, s}; in uECC_sign_with_k()
107 uECC_word_t p[NUM_ECC_WORDS * 2]; in uECC_sign_with_k()
108 uECC_word_t carry; in uECC_sign_with_k()
[all …]