Home
last modified time | relevance | path

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

/babblesim_ext_libCryptov1-latest/src/
Dblecrypt_unittest.c79 …uint64_t packet_counter, // 39-bit packet count (in given direction, excl. … in nonce_calc() argument
89 ccm_nonce[i] = packet_counter & 0xFF; in nonce_calc()
90 packet_counter >>= 8; in nonce_calc()
92 …ccm_nonce[i] = (packet_counter & 0x7F) | (packet_direction == MASTER_TO_SLAVE_DIRECTION ? 0x80 : 0… in nonce_calc()
104 uint64_t packet_counter, in test_packet_encryption() argument
117 nonce_calc(iv, packet_counter, packet_direction, ccm_nonce); in test_packet_encryption()
140 uint64_t packet_counter, in test_packet_decryption() argument
154 nonce_calc(iv, packet_counter, packet_direction, ccm_nonce); in test_packet_decryption()