Lines Matching refs:sk

36     uint8_t *sk)                                    // Session key (KEY_LEN bytes, BIG-ENDIAN)  in blecrypt_session_key_calc()  argument
46 blecrypt_aes_128(ltk_be, skd_be, sk); in blecrypt_session_key_calc()
57 uint8_t *sk) // session key is big-endian for OpenSSL in test_session_key_calc() argument
62 blecrypt_session_key_calc(skd, ltk, sk); in test_session_key_calc()
65 blecrypt_reverse_byte_order(sk, sk_le, KEY_LEN); in test_session_key_calc()
106 const uint8_t *sk) // session key is big-endian for OpenSSL in test_packet_encryption() argument
121 packet_1st_header_byte, packet_payload_len, unencrypted_packet_payload, sk, ccm_nonce, in test_packet_encryption()
142 const uint8_t *sk, // session key is big-endian for OpenSSL in test_packet_decryption() argument
158 packet_1st_header_byte, packet_payload_len, encrypted_packet_payload_and_mic, sk, ccm_nonce, in test_packet_decryption()
288 uint8_t sk[KEY_LEN]; // sk is big-endian for OpenSSL in main() local
299 test_session_key_calc(skd, ref_ltk, ref_sk, sk); in main()
302 …_payload_unencrypted, packet0_encrypted, MASTER_TO_SLAVE_DIRECTION, master_packet_counter, iv, sk); in main()
303 …d, packet0_payload_unencrypted, MASTER_TO_SLAVE_DIRECTION, master_packet_counter, iv, sk, HAS_MIC); in main()
305 …1_payload_unencrypted, packet1_encrypted, SLAVE_TO_MASTER_DIRECTION, slave_packet_counter, iv, sk); in main()
306 …ed, packet1_payload_unencrypted, SLAVE_TO_MASTER_DIRECTION, slave_packet_counter, iv, sk, HAS_MIC); in main()
308 …_payload_unencrypted, packet2_encrypted, MASTER_TO_SLAVE_DIRECTION, master_packet_counter, iv, sk); in main()
309 …d, packet2_payload_unencrypted, MASTER_TO_SLAVE_DIRECTION, master_packet_counter, iv, sk, HAS_MIC); in main()
311 …packet2_payload_unencrypted, MASTER_TO_SLAVE_DIRECTION, master_packet_counter, iv, sk, HAS_NO_MIC); in main()
313 …3_payload_unencrypted, packet3_encrypted, SLAVE_TO_MASTER_DIRECTION, slave_packet_counter, iv, sk); in main()
314 …ed, packet3_payload_unencrypted, SLAVE_TO_MASTER_DIRECTION, slave_packet_counter, iv, sk, HAS_MIC); in main()