Home
last modified time | relevance | path

Searched refs:b (Results 1 – 7 of 7) sorted by relevance

/lib/source/
A Dccm_mode.c154 uint8_t b[Nb * Nk]; in tc_ccm_generation_encryption() local
163 b[i] = c->nonce[i - 1]; in tc_ccm_generation_encryption()
166 b[15] = (uint8_t)(plen); in tc_ccm_generation_encryption()
181 b[14] = b[15] = TC_ZERO_BYTE; in tc_ccm_generation_encryption()
186 b[14] = b[15] = TC_ZERO_BYTE; /* restoring initial counter for ctr_mode (0):*/ in tc_ccm_generation_encryption()
189 (void) tc_aes_encrypt(b, b, c->sched); in tc_ccm_generation_encryption()
215 uint8_t b[Nb * Nk]; in tc_ccm_decryption_verification() local
226 b[14] = b[15] = TC_ZERO_BYTE; /* initial counter value is 0 */ in tc_ccm_decryption_verification()
231 b[14] = b[15] = TC_ZERO_BYTE; /* restoring initial counter value (0) */ in tc_ccm_decryption_verification()
234 (void) tc_aes_encrypt(b, b, c->sched); in tc_ccm_decryption_verification()
[all …]
A Dsha256.c167 #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()
197 t2 = Sigma0(a) + Maj(a, b, c); in compress()
199 d = c; c = b; b = a; a = t1 + t2; in compress()
210 t2 = Sigma0(a) + Maj(a, b, c); in compress()
212 d = c; c = b; b = a; a = t1 + t2; in compress()
215 iv[0] += a; iv[1] += b; iv[2] += c; iv[3] += d; in compress()
A Dutils.c64 int _compare(const uint8_t *a, const uint8_t *b, size_t size) in _compare() argument
67 const uint8_t *tempb = b; in _compare()
A Decc.c249 uECC_dword_t p = (uECC_dword_t)a * b; in muladd()
421 uECC_vli_set(b, mod, num_words); in uECC_vli_modInv()
429 } else if (EVEN(b)) { in uECC_vli_modInv()
430 uECC_vli_rshift1(b, num_words); in uECC_vli_modInv()
433 uECC_vli_sub(a, a, b, num_words); in uECC_vli_modInv()
441 uECC_vli_sub(b, b, a, num_words); in uECC_vli_modInv()
442 uECC_vli_rshift1(b, num_words); in uECC_vli_modInv()
819 unsigned b = num_bytes - 1 - i; in uECC_vli_nativeToBytes() local
820 bytes[i] = native[b / uECC_WORD_SIZE] >> (8 * (b % uECC_WORD_SIZE)); in uECC_vli_nativeToBytes()
831 unsigned b = num_bytes - 1 - i; in uECC_vli_bytesToNative() local
[all …]
A Decc_dsa.c187 static bitcount_t smax(bitcount_t a, bitcount_t b) in smax() argument
189 return (a > b ? a : b); in smax()
/lib/include/tinycrypt/
A Decc.h119 uECC_word_t b[NUM_ECC_WORDS]; member
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
A Dutils.h115 int _compare(const uint8_t *a, const uint8_t *b, size_t size);

Completed in 16 milliseconds