/tinycrypt-latest/lib/source/ |
D | sha256.c | 157 static inline unsigned int ROTR(unsigned int a, unsigned int n) in ROTR() argument 159 return (((a) >> n) | ((a) << (32 - n))); in ROTR() 162 #define Sigma0(a)(ROTR((a), 2) ^ ROTR((a), 13) ^ ROTR((a), 22)) argument 163 #define Sigma1(a)(ROTR((a), 6) ^ ROTR((a), 11) ^ ROTR((a), 25)) argument 164 #define sigma0(a)(ROTR((a), 7) ^ ROTR((a), 18) ^ ((a) >> 3)) argument 165 #define sigma1(a)(ROTR((a), 17) ^ ROTR((a), 19) ^ ((a) >> 10)) argument 167 #define Ch(a, b, c)(((a) & (b)) ^ ((~(a)) & (c))) argument 168 #define Maj(a, b, c)(((a) & (b)) ^ ((a) & (c)) ^ ((b) & (c))) argument 183 unsigned int a, b, c, d, e, f, g, h; in compress() local 190 a = iv[0]; b = iv[1]; c = iv[2]; d = iv[3]; in compress() [all …]
|
D | aes_decrypt.c | 67 #define mult8(a)(_double_byte(_double_byte(_double_byte(a)))) argument 68 #define mult9(a)(mult8(a)^(a)) argument 69 #define multb(a)(mult8(a)^_double_byte(a)^(a)) argument 70 #define multd(a)(mult8(a)^_double_byte(_double_byte(a))^(a)) argument 71 #define multe(a)(mult8(a)^_double_byte(_double_byte(a))^_double_byte(a)) argument
|
D | utils.c | 59 uint8_t _double_byte(uint8_t a) in _double_byte() argument 61 return ((a<<1) ^ ((a>>7) * MASK_TWENTY_SEVEN)); in _double_byte() 64 int _compare(const uint8_t *a, const uint8_t *b, size_t size) in _compare() argument 66 const uint8_t *tempa = a; in _compare()
|
D | aes_encrypt.c | 62 static inline unsigned int rotword(unsigned int a) in rotword() argument 64 return (((a) >> 24)|((a) << 8)); in rotword() 67 #define subbyte(a, o)((uint32_t)sbox[((a) >> (o))&0xff] << (o)) argument 68 #define subword(a)(subbyte(a, 24)|subbyte(a, 16)|subbyte(a, 8)|subbyte(a, 0)) argument 122 #define triple(a)(_double_byte(a)^(a)) argument
|
D | ecc.c | 245 static void muladd(uECC_word_t a, uECC_word_t b, uECC_word_t *r0, in muladd() argument 249 uECC_dword_t p = (uECC_dword_t)a * b; in muladd() 411 uECC_word_t a[NUM_ECC_WORDS], b[NUM_ECC_WORDS]; in uECC_vli_modInv() local 420 uECC_vli_set(a, input, num_words); in uECC_vli_modInv() 425 while ((cmpResult = uECC_vli_cmp_unsafe(a, b, num_words)) != 0) { in uECC_vli_modInv() 426 if (EVEN(a)) { in uECC_vli_modInv() 427 uECC_vli_rshift1(a, num_words); in uECC_vli_modInv() 433 uECC_vli_sub(a, a, b, num_words); in uECC_vli_modInv() 434 uECC_vli_rshift1(a, num_words); in uECC_vli_modInv() 441 uECC_vli_sub(b, b, a, num_words); in uECC_vli_modInv()
|
D | ecc_dsa.c | 187 static bitcount_t smax(bitcount_t a, bitcount_t b) in smax() argument 189 return (a > b ? a : b); in smax()
|
/tinycrypt-latest/lib/include/tinycrypt/ |
D | utils.h | 105 uint8_t _double_byte(uint8_t a); 115 int _compare(const uint8_t *a, const uint8_t *b, size_t size);
|
D | ecc.h | 154 #define BYTES_TO_WORDS_8(a, b, c, d, e, f, g, h) 0x##d##c##b##a, 0x##h##g##f##e argument 155 #define BYTES_TO_WORDS_4(a, b, c, d) 0x##d##c##b##a argument
|
/tinycrypt-latest/ |
D | README.zephyr | 1 The TinyCrypt library in Zephyr is a downstream of an externally maintained
|