Searched refs:ccm_nonce (Results 1 – 3 of 3) sorted by relevance
| /babblesim_ext_libCryptov1-latest/src/ |
| D | blecrypt.c | 73 const uint8_t *ccm_nonce, // CCM Nonce (NONCE_LEN bytes, little-endian) in blecrypt_packet_encrypt() argument 83 ccm_nonce, in blecrypt_packet_encrypt() 95 const uint8_t *ccm_nonce, // CCM Nonce (NONCE_LEN bytes, little-endian) in blecrypt_packet_decrypt() argument 106 ccm_nonce, in blecrypt_packet_decrypt() 137 const uint8_t *ccm_nonce, in blecrypt_packet_encrypt_v2() argument 155 EVP_EncryptInit_ex(ctx, NULL, NULL, sk, ccm_nonce); in blecrypt_packet_encrypt_v2() 197 const uint8_t *ccm_nonce, in blecrypt_packet_decrypt_v2() argument 227 EVP_DecryptInit(ctx, NULL, sk, ccm_nonce); in blecrypt_packet_decrypt_v2() 270 const uint8_t *ccm_nonce, in blecrypt_packet_encrypt_v3() argument 288 EVP_EncryptInit_ex(ctx, NULL, NULL, sk, ccm_nonce); in blecrypt_packet_encrypt_v3() [all …]
|
| D | blecrypt_unittest.c | 82 …uint8_t *ccm_nonce) // Resulting nonce (NONCE_LEN bytes, little-endian) in nonce_calc() argument 89 ccm_nonce[i] = packet_counter & 0xFF; in nonce_calc() 92 …ccm_nonce[i] = (packet_counter & 0x7F) | (packet_direction == MASTER_TO_SLAVE_DIRECTION ? 0x80 : 0… in nonce_calc() 94 memcpy(&ccm_nonce[NONCE_LEN - IV_LEN], iv, IV_LEN); in nonce_calc() 115 uint8_t ccm_nonce[NONCE_LEN]; in test_packet_encryption() local 117 nonce_calc(iv, packet_counter, packet_direction, ccm_nonce); in test_packet_encryption() 121 packet_1st_header_byte, packet_payload_len, unencrypted_packet_payload, sk, ccm_nonce, in test_packet_encryption() 152 uint8_t ccm_nonce[NONCE_LEN]; in test_packet_decryption() local 154 nonce_calc(iv, packet_counter, packet_direction, ccm_nonce); in test_packet_decryption() 158 packet_1st_header_byte, packet_payload_len, encrypted_packet_payload_and_mic, sk, ccm_nonce, in test_packet_decryption()
|
| D | blecrypt.h | 58 const uint8_t *ccm_nonce, // CCM Nonce (NONCE_LEN bytes, little-endian) 70 const uint8_t *ccm_nonce, // CCM Nonce (NONCE_LEN bytes, little-endian) 80 const uint8_t *ccm_nonce, 88 const uint8_t *ccm_nonce, 100 const uint8_t *ccm_nonce, 111 const uint8_t *ccm_nonce,
|