Searched refs:ct (Results 1 – 1 of 1) sorted by relevance
/babblesim_ext_libCryptov1-latest/src/ |
D | blecrypt.c | 117 uint8_t *ct = encrypted_packet_payload_and_mic; in blecrypt_packet_encrypt_v2() local 134 EVP_EncryptUpdate(ctx, ct, &outlen, pt, packet_payload_len); in blecrypt_packet_encrypt_v2() 136 EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_CCM_GET_TAG, MIC_LEN, (ct += outlen)); in blecrypt_packet_encrypt_v2() 176 const uint8_t *ct = packet_payload_and_mic; in blecrypt_packet_decrypt_v2() local 197 … EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_CCM_SET_TAG, MIC_LEN, (uint8_t *) ct + packet_payload_len); in blecrypt_packet_decrypt_v2() 206 ok = EVP_DecryptUpdate(ctx, pt, &outlen, ct, packet_payload_len); in blecrypt_packet_decrypt_v2() 250 uint8_t *ct = encrypted_packet_payload_and_mac; in blecrypt_packet_encrypt_v3() local 267 EVP_EncryptUpdate(ctx, ct, &outlen, pt, mlen); in blecrypt_packet_encrypt_v3() 269 EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_CCM_GET_TAG, maclen, (ct += outlen)); in blecrypt_packet_encrypt_v3() 314 const uint8_t *ct = mdata_and_mac; in blecrypt_packet_decrypt_v3() local [all …]
|