Searched refs:num_bytes (Results 1 – 4 of 4) sorted by relevance
/tinycrypt-3.7.0/lib/source/ |
D | ecc_dh.c | 89 curve->num_bytes, in uECC_make_key_with_d() 91 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key_with_d() 92 curve->num_bytes, in uECC_make_key_with_d() 130 curve->num_bytes, in uECC_make_key() 132 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key() 133 curve->num_bytes, in uECC_make_key() 157 wordcount_t num_bytes = curve->num_bytes; in uECC_shared_secret() local 166 num_bytes); in uECC_shared_secret() 168 public_key + num_bytes, in uECC_shared_secret() 169 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 …]
|
/tinycrypt-3.7.0/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);
|